class TaskJuggler::TextParser::Scanner::BufferStreamHandle

Specialized version of StreamHandle for operations on Strings.

Public Class Methods

new(buffer, log, textScanner) click to toggle source
# File lib/taskjuggler/TextParser/Scanner.rb, line 192
def initialize(buffer, log, textScanner)
  super(log, textScanner)
  begin
    @stream = StringIO.new(buffer)
  rescue
    error('bufferEncoding', $!.message)
  end
  #@log.msg { "Parsing buffer #{buffer[0, 20]} ..." }
end