Class: IRB::ExtendCommand::Workspaces

Inherits:
Nop show all
Defined in:
lib/irb/cmd/pushws.rb

Direct Known Subclasses

PopWorkspace, PushWorkspace

Instance Attribute Summary

Attributes inherited from Nop

#irb_context

Instance Method Summary collapse

Methods inherited from Nop

execute, #initialize, #irb

Constructor Details

This class inherits a constructor from IRB::ExtendCommand::Nop

Instance Method Details

#execute(*obj) ⇒ Object



20
21
22
# File 'lib/irb/cmd/pushws.rb', line 20

def execute(*obj)
  irb_context.workspaces.collect{|ws| ws.main}
end