class StringLineReader

fix: move into TextUtils namespace/module!!

Public Class Methods

new( text ) click to toggle source
# File lib/textutils/reader/line_reader.rb, line 13
def initialize( text )
  logger.info "StringLineReader.new - deprecated API - use LineReader.from_string() instead"
  @reader = LineReader.from_string( text )
end

Public Instance Methods

each_line() { |line| ... } click to toggle source
# File lib/textutils/reader/line_reader.rb, line 18
def each_line
  @reader.each_line do |line|    
    yield( line )
  end # each lines
end