summaryrefslogtreecommitdiff
path: root/README.EXT
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-16 10:38:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-16 10:38:15 +0000
commitde870875f773f5a680b12e5306bc316d35465fe5 (patch)
tree3e7e6687bcf49cc892b6d2fed53c6f5fcd48ae7e /README.EXT
parentb1acfbc121ad5eecaf315b6126f960894da1d83b (diff)
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.EXT5
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: