Class: IRB::ExtendCommand::Foreground
- Inherits:
-
MultiIRBCommand
- Object
- Nop
- MultiIRBCommand
- IRB::ExtendCommand::Foreground
- Defined in:
- lib/irb/cmd/subirb.rb
Instance Attribute Summary
Attributes inherited from Nop
Instance Method Summary collapse
Methods inherited from MultiIRBCommand
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 |