Class: CsvReader::Reader
- Inherits:
-
Object
- Object
- CsvReader::Reader
- Defined in:
- lib/csv_reader/reader.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ Reader
constructor
A new instance of Reader.
- #read ⇒ Object
Constructor Details
#initialize(file) ⇒ Reader
Returns a new instance of Reader.
3 4 5 |
# File 'lib/csv_reader/reader.rb', line 3 def initialize(file) @file = File.open(file) end |
Instance Method Details
#read ⇒ Object
7 8 9 |
# File 'lib/csv_reader/reader.rb', line 7 def read @file.read end |