module ANTLR3::Test::CaptureOutput

Public Instance Methods

capture( *args ) click to toggle source
# File lib/antlr3/test/functional.rb, line 205
def capture( *args )
  output_buffer.write( *args )
end
output() click to toggle source
# File lib/antlr3/test/functional.rb, line 197
def output
  output_buffer.string
end
output_buffer() click to toggle source
# File lib/antlr3/test/functional.rb, line 192
def output_buffer
  defined?( @output_buffer ) or @output_buffer = StringIO.new( '' )
  @output_buffer
end
say( *args ) click to toggle source
# File lib/antlr3/test/functional.rb, line 201
def say( *args )
  output_buffer.puts( *args )
end