Class: FileReader

Inherits:
FileProcessor show all
Defined in:
lib/notroff/io.rb

Instance Method Summary collapse

Methods inherited from FileProcessor

#initialize

Constructor Details

This class inherits a constructor from FileProcessor

Instance Method Details

#process(ignored) ⇒ Object



8
9
10
11
# File 'lib/notroff/io.rb', line 8

def process(ignored)
  paras = File.readlines(@path)
  paras.map! {|p| p.rstrip}
end