diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-21 05:45:50 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-21 05:45:50 +0000 |
commit | 7e9eb32669348b7e0a5775c8e0fc9566be11fc31 (patch) | |
tree | 96be4fc975e7afab8dbf4c85e04d552760dab34c /lib/irb/workspace.rb | |
parent | 4f7a6aafa57bf57ce4b0b5e323548f0a6385d527 (diff) | |
download | ruby-7e9eb32669348b7e0a5775c8e0fc9566be11fc31.tar.gz |
* 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
Diffstat (limited to 'lib/irb/workspace.rb')
-rw-r--r-- | lib/irb/workspace.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index 04490ba7c6..d26e43df57 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -75,9 +75,13 @@ EOF eval("_=nil", @binding) end + # The Binding of this workspace attr_reader :binding + # The top-level workspace of this context, also available as + # <code>IRB.conf[:__MAIN__]</code> attr_reader :main + # Evaluate the given +statements+ within the context of this workspace. def evaluate(context, statements, file = __FILE__, line = __LINE__) eval(statements, @binding, file, line) end |