123456789_123456789_123456789_123456789_123456789_

Class: IRB::Command::PushWorkspace

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Workspaces, Base
Instance Chain:
self, Workspaces, Base
Inherits: IRB::Command::Workspaces
Defined in: lib/irb/command/pushws.rb

Class Method Summary

Instance Attribute Summary

Base - Inherited

Instance Method Summary

Constructor Details

This class inherits a constructor from IRB::Command::Base

Instance Method Details

#execute(arg)

[ GitHub ]

  
# 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