1# 2# change-ws.rb - 3# $Release Version: 0.9.6$ 4# $Revision: 38358 $ 5# by Keiju ISHITSUKA(keiju@ruby-lang.org) 6# 7# -- 8# 9# 10# 11 12require "irb/cmd/nop.rb" 13require "irb/ext/change-ws.rb" 14 15# :stopdoc: 16module IRB 17 module ExtendCommand 18 19 class CurrentWorkingWorkspace<Nop 20 def execute(*obj) 21 irb_context.main 22 end 23 end 24 25 class ChangeWorkspace<Nop 26 def execute(*obj) 27 irb_context.change_workspace(*obj) 28 irb_context.main 29 end 30 end 31 end 32end 33# :startdoc: 34