Class: IRB::Command::PushWorkspace
- Inherits:
-
Workspaces
- Object
- Base
- Workspaces
- IRB::Command::PushWorkspace
- Defined in:
- lib/irb/command/pushws.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
category, description, execute, help_message, #initialize
Constructor Details
This class inherits a constructor from IRB::Command::Base
Instance Method Details
#execute(arg) ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/irb/command/pushws.rb', line 42 def execute(arg) if arg.empty? irb_context.push_workspace else obj = eval(arg, irb_context.workspace.binding) irb_context.push_workspace(obj) end super end |