Class: TextReader
Instance Method Summary collapse
-
#initialize(path) ⇒ TextReader
constructor
A new instance of TextReader.
- #process(ignored) ⇒ Object
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 |