Line | |
---|
1 | #
|
---|
2 | # change-ws.rb -
|
---|
3 | # $Release Version: 0.9.5$
|
---|
4 | # $Revision: 11708 $
|
---|
5 | # $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $
|
---|
6 | # by Keiju ISHITSUKA([email protected])
|
---|
7 | #
|
---|
8 | # --
|
---|
9 | #
|
---|
10 | #
|
---|
11 | #
|
---|
12 |
|
---|
13 | require "irb/cmd/nop.rb"
|
---|
14 | require "irb/ext/change-ws.rb"
|
---|
15 |
|
---|
16 | module 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
|
---|
32 | end
|
---|
33 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.