Class: NameStreamSource

Inherits:
NameSource show all
Defined in:
lib/namesource.rb

Instance Method Summary collapse

Methods inherited from NameSource

#close

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