Class: MeteoPl::IO::FileHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/meteo_pl/io/file_handler.rb

Instance Method Summary collapse

Instance Method Details

#openObject



6
7
8
9
10
# File 'lib/meteo_pl/io/file_handler.rb', line 6

def open
  Tempfile.open(['meteo_graph', '.png']) do |temp_file|
    yield(temp_file)
  end
end