mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/irb.rb, lib/irb/*: Documentation for IRB
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4f7a6aafa5
commit
7e9eb32669
21 changed files with 611 additions and 60 deletions
|
@ -12,11 +12,12 @@
|
|||
module IRB # :nodoc:
|
||||
class Context
|
||||
|
||||
# Size of the current WorkSpace stack
|
||||
def irb_level
|
||||
workspace_stack.size
|
||||
end
|
||||
|
||||
# Workspaces in the current stack
|
||||
# WorkSpaces in the current stack
|
||||
def workspaces
|
||||
if defined? @workspaces
|
||||
@workspaces
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue