Class: IRB::ExtendCommand::ChangeWorkspace

Inherits:
Nop
  • Object
show all
Defined in:
lib/irb/cmd/chws.rb

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



27
28
29
30
# File 'lib/irb/cmd/chws.rb', line 27

def execute(*obj)
  irb_context.change_workspace(*obj)
  irb_context.main
end