diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-16 10:38:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-16 10:38:15 +0000 |
commit | de870875f773f5a680b12e5306bc316d35465fe5 (patch) | |
tree | 3e7e6687bcf49cc892b6d2fed53c6f5fcd48ae7e /README.EXT | |
parent | b1acfbc121ad5eecaf315b6126f960894da1d83b (diff) | |
download | ruby-de870875f773f5a680b12e5306bc316d35465fe5.tar.gz |
vm_eval.c: rb_current_receiver
* vm_eval.c (rb_current_receiver): new function to return the
receiver in the current control frame. [Feature #10195]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r-- | README.EXT | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/README.EXT b/README.EXT index c8aafc4d55..145d922b10 100644 --- a/README.EXT +++ b/README.EXT @@ -442,6 +442,11 @@ you may rely on: VALUE rb_call_super(int argc, const VALUE *argv) +To achieve the receiver of the current scope (if no other way is +available), you can use: + + VALUE rb_current_receiver(void) + === Constant Definition We have 2 functions to define constants: |