Class: Cartos::Import::File
- Inherits:
-
Object
- Object
- Cartos::Import::File
- Defined in:
- lib/cartos/import/file.rb
Instance Method Summary collapse
- #import ⇒ Object
-
#initialize(filename) ⇒ File
constructor
A new instance of File.
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
#import ⇒ Object
9 10 11 12 |
# File 'lib/cartos/import/file.rb', line 9 def import file = ::File.open @filename file.read end |