Class: IRB::Command::Shadow
- Inherits:
-
Base
- Object
- Base
- IRB::Command::Shadow
- Defined in:
- lib/irbtools/commands/shadow.rb
Instance Method Summary collapse
Instance Method Details
#execute(*args) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/irbtools/commands/shadow.rb', line 9 def execute(*args) if args.empty? @irb_context.workspace.binding.shadow else obj, *params = *args obj.shadow(*params) end end |