Class: IRB::ExtendCommand::IrbCommand

Inherits:
MultiIRBCommand show all
Defined in:
lib/irb/cmd/subirb.rb

Instance Attribute Summary

Attributes inherited from Nop

#irb_context

Instance Method Summary collapse

Methods inherited from Nop

category, description, execute, #initialize

Constructor Details

This class inherits a constructor from IRB::ExtendCommand::Nop

Instance Method Details

#execute(*obj) ⇒ Object



41
42
43
44
45
46
47
48
49
50
51
# File 'lib/irb/cmd/subirb.rb', line 41

def execute(*obj)
  print_deprecated_warning

  if irb_context.with_debugger
    print_debugger_warning
    return
  end

  super
  IRB.irb(nil, *obj)
end