Class: IRB::ExtendCommand::Nop
Direct Known Subclasses
ChangeWorkspace, CurrentWorkingWorkspace, Debug, Edit, Fork, Help, IrbInfo, LoaderCommand, Ls, Measure, MultiIRBCommand, ShowCmds, ShowSource, Whereami, Workspaces
Instance Attribute Summary collapse
-
#irb_context ⇒ Object
readonly
Returns the value of attribute irb_context.
Class Method Summary collapse
- .category(category = nil) ⇒ Object
- .description(description = nil) ⇒ Object
- .execute(conf, *opts, &block) ⇒ Object
Instance Method Summary collapse
- #execute(*opts) ⇒ Object
-
#initialize(conf) ⇒ Nop
constructor
A new instance of Nop.
- #irb ⇒ Object
Constructor Details
#initialize(conf) ⇒ Nop
Returns a new instance of Nop.
49 50 51 |
# File 'lib/irb/cmd/nop.rb', line 49 def initialize(conf) @irb_context = conf end |
Instance Attribute Details
#irb_context ⇒ Object (readonly)
Returns the value of attribute irb_context.
53 54 55 |
# File 'lib/irb/cmd/nop.rb', line 53 def irb_context @irb_context end |
Class Method Details
.category(category = nil) ⇒ Object
15 16 17 18 |
# File 'lib/irb/cmd/nop.rb', line 15 def category(category = nil) @category = category if category @category end |
.description(description = nil) ⇒ Object
20 21 22 23 |
# File 'lib/irb/cmd/nop.rb', line 20 def description(description = nil) @description = description if description @description end |
.execute(conf, *opts, &block) ⇒ Object
34 35 36 37 38 39 |
# File 'lib/irb/cmd/nop.rb', line 34 def self.execute(conf, *opts, **kwargs, &block) command = new(conf) command.execute(*opts, **kwargs, &block) rescue CommandArgumentError => e puts e. end |