Class: NameStreamSource
- Inherits:
-
NameSource
- Object
- NameSource
- NameStreamSource
- Defined in:
- lib/namesource.rb
Instance Method Summary collapse
-
#initialize(stream) ⇒ NameStreamSource
constructor
A new instance of NameStreamSource.
- #name(file, md, path) ⇒ Object
Methods inherited from NameSource
Constructor Details
#initialize(stream) ⇒ NameStreamSource
Returns a new instance of NameStreamSource.
12 13 14 |
# File 'lib/namesource.rb', line 12 def initialize(stream) @stream = stream end |
Instance Method Details
#name(file, md, path) ⇒ Object
16 17 18 |
# File 'lib/namesource.rb', line 16 def name(file, md, path) @stream.readline.chomp end |