Imported File#ftype spec from rubyspecs.
[rbx.git] / lib / irb / cmd / chws.rb
blob9dfa11867e3fbcd64113ca86da0fa08590130582
2 #   change-ws.rb - 
3 #       $Release Version: 0.9.5$
4 #       $Revision: 11708 $
5 #       $Date: 2007-02-12 15:01:19 -0800 (Mon, 12 Feb 2007) $
6 #       by Keiju ISHITSUKA(keiju@ruby-lang.org)
8 # --
10 #   
13 require "irb/cmd/nop.rb"
14 require "irb/ext/change-ws.rb"
16 module IRB
17   module ExtendCommand
19     class CurrentWorkingWorkspace<Nop
20       def execute(*obj)
21         irb_context.main
22       end
23     end
25     class ChangeWorkspace<Nop
26       def execute(*obj)
27         irb_context.change_workspace(*obj)
28         irb_context.main
29       end
30     end
31   end
32 end