Class: Cartos::Import::File

Inherits:
Object
  • Object
show all
Defined in:
lib/cartos/import/file.rb

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ File

Returns a new instance of File.



6
7
8
# File 'lib/cartos/import/file.rb', line 6

def initialize(filename)
  @filename = filename
end

Instance Method Details

#importObject



9
10
11
12
# File 'lib/cartos/import/file.rb', line 9

def import
  file = ::File.open @filename
  file.read
end