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

category, description, execute, #initialize

Constructor Details

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

Instance Method Details

#execute(*obj) ⇒ Object



18
19
20
# File 'lib/irb/cmd/pushws.rb', line 18

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