Class: TextReader

Inherits:
Processor show all
Defined in:
lib/notroff/processor.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ TextReader

Returns a new instance of TextReader.



29
30
31
# File 'lib/notroff/processor.rb', line 29

def initialize( path )
  @path = path
end

Instance Method Details

#process(ignored) ⇒ Object



33
34
35
36
37
# File 'lib/notroff/processor.rb', line 33

def process( ignored )
  lines = File.open( @path ).readlines
  lines.map! { |line| line.rstrip }
  lines
end