Class: AsciiDataTools::InputSource
- Inherits:
-
Struct
- Object
- Struct
- AsciiDataTools::InputSource
- Defined in:
- lib/ascii-data-tools/configuration.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#stream ⇒ Object
Returns the value of attribute stream.
Instance Method Summary collapse
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename
115 116 117 |
# File 'lib/ascii-data-tools/configuration.rb', line 115 def filename @filename end |
#stream ⇒ Object
Returns the value of attribute stream
115 116 117 |
# File 'lib/ascii-data-tools/configuration.rb', line 115 def stream @stream end |
Instance Method Details
#has_records? ⇒ Boolean
120 121 122 |
# File 'lib/ascii-data-tools/configuration.rb', line 120 def has_records? not stream.eof? end |
#read ⇒ Object
116 117 118 |
# File 'lib/ascii-data-tools/configuration.rb', line 116 def read stream.readline end |