OSDN Git Service
(root)
/
splhack
/
AndroidRuby.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ruby-1.9.1-rc1
[splhack/AndroidRuby.git]
/
lib
/
ruby-1.9.1-rc1
/
lib
/
irb
/
cmd
/
chws.rb
1
#
2
# change-ws.rb -
3
# $Release Version: 0.9.5$
4
# $Revision: 14912 $
5
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
6
#
7
# --
8
#
9
#
10
#
11
12
require "irb/cmd/nop.rb"
13
require "irb/ext/change-ws.rb"
14
15
module IRB
16
module ExtendCommand
17
18
class CurrentWorkingWorkspace<Nop
19
def execute(*obj)
20
irb_context.main
21
end
22
end
23
24
class ChangeWorkspace<Nop
25
def execute(*obj)
26
irb_context.change_workspace(*obj)
27
irb_context.main
28
end
29
end
30
end
31
end
32