2 class IrbRubinius < Irb
4 @scanner.each_top_level_statement do |line, line_no|
5 signal_status(:IN_EVAL) do
8 @context.evaluate(line, line_no)
9 output_value if @context.echo?
10 rescue SystemExit, ThrownValue => e
14 puts "#{e.class}: #{e.message}"
16 bt = e.awesome_backtrace
19 bt.frames.each do |frame|
23 if %r!kernel/core/eval.rb!.match(loc)
28 if %r!main.irb_binding!.match(recv)
33 puts " from #{recv} at #{loc}"
42 IRB.conf[:IRB_CLASS] = IRB::IrbRubinius