Module: FancyIrb::IrbExtCommon

Included in:
IRB::Irb
Defined in:
lib/fancy_irb/irb_ext.rb

Instance Method Summary collapse

Instance Method Details

#output_value(_omit = false) ⇒ Object



3
4
5
# File 'lib/fancy_irb/irb_ext.rb', line 3

def output_value(_omit = false)
  FancyIrb.output_value(@context, @scanner)
end

#signal_status(name, *args, &block) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/fancy_irb/irb_ext.rb', line 7

def signal_status(name, *args, &block)
  FancyIrb.reset_line!
  super(name, *args, &block)
ensure
  if name == :IN_EVAL
    FancyIrb.present_and_clear_captured_error!
  end
end