From de870875f773f5a680b12e5306bc316d35465fe5 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 16 Nov 2014 10:38:15 +0000 Subject: 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 --- README.EXT | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'README.EXT') 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: -- cgit v1.2.1