Class: IRB::ExtendCommand::Foreground

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 MultiIRBCommand

#initialize

Methods inherited from Nop

category, description, execute, #initialize, #irb

Constructor Details

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

Instance Method Details

#execute(key = nil) ⇒ Object



49
50
51
52
# File 'lib/irb/cmd/subirb.rb', line 49

def execute(key = nil)
  raise CommandArgumentError.new("Please specify the id of target IRB job (listed in the `jobs` command).") unless key
  IRB.JobManager.switch(key)
end