diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-13 05:22:30 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-13 05:22:30 +0000 |
commit | 89833152381b759482d5e0ae9dcbdd9ed29a2b6a (patch) | |
tree | ab615431bccab8bde95bb57d893ecea4b2bd4405 /lib/irb/ext/change-ws.rb | |
parent | 0ac361f54060a26f771d8751f06bbd1013db2016 (diff) | |
download | ruby-89833152381b759482d5e0ae9dcbdd9ed29a2b6a.tar.gz |
* lib/irb*: merge doc from doc/irb/ird.rd and improve overall
documentation of IRB
* doc/irb/irb.rd: remove stale documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/ext/change-ws.rb')
-rw-r--r-- | lib/irb/ext/change-ws.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/irb/ext/change-ws.rb b/lib/irb/ext/change-ws.rb index dea969d384..a28754e378 100644 --- a/lib/irb/ext/change-ws.rb +++ b/lib/irb/ext/change-ws.rb @@ -9,7 +9,7 @@ # # -module IRB +module IRB # :nodoc: class Context def home_workspace @@ -20,6 +20,13 @@ module IRB end end + # Changes the current workspace to given object or binding. + # + # If the optional argument is omitted, the workspace will be + # #home_workspace which is inherited from +TOPLEVEL_BINDING+ or the main + # object, <code>IRB.conf[:MAIN_CONTEXT]</code> when irb was initialized. + # + # See IRB::WorkSpace.new for more information. def change_workspace(*_main) if _main.empty? @workspace = home_workspace |