Module: ANTLR3::Test::CaptureOutput
- Defined in:
- lib/antlr3/test/functional.rb
Instance Method Summary collapse
Instance Method Details
#capture(*args) ⇒ Object
205 206 207 |
# File 'lib/antlr3/test/functional.rb', line 205 def capture( *args ) output_buffer.write( *args ) end |
#output ⇒ Object
197 198 199 |
# File 'lib/antlr3/test/functional.rb', line 197 def output output_buffer.string end |
#output_buffer ⇒ Object
192 193 194 195 |
# File 'lib/antlr3/test/functional.rb', line 192 def output_buffer defined?( @output_buffer ) or @output_buffer = StringIO.new( '' ) @output_buffer end |
#say(*args) ⇒ Object
201 202 203 |
# File 'lib/antlr3/test/functional.rb', line 201 def say( *args ) output_buffer.puts( *args ) end |