Class: StringReader
- Inherits:
-
Object
- Object
- StringReader
- Defined in:
- lib/string_reader.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ StringReader
constructor
A new instance of StringReader.
- #read(path) ⇒ Object
Constructor Details
#initialize(file) ⇒ StringReader
2 3 4 |
# File 'lib/string_reader.rb', line 2 def initialize(file) @read = file end |
Instance Method Details
#read(path) ⇒ Object
6 7 8 |
# File 'lib/string_reader.rb', line 6 def read(path) @read end |