summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-14 23:54:06 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-14 23:54:06 +0000
commitf8c4023772983c322280762e720a50d9604188ac (patch)
tree9f279add5f9f86d3340ec0be83469291a2601bbc /eval.c
parent1abc48beac217c488391adeb3bf3f60781e48e3d (diff)
downloadruby-f8c4023772983c322280762e720a50d9604188ac.tar.gz
ruby-f8c4023772983c322280762e720a50d9604188ac.tar.xz
ruby-f8c4023772983c322280762e720a50d9604188ac.zip
* eval.c (rb_method_node): new API to retrieve method body.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index de8408170..64fa28bd9 100644
--- a/eval.c
+++ b/eval.c
@@ -421,6 +421,16 @@ rb_get_method_body(klassp, idp, noexp)
return body;
}
+NODE*
+rb_method_node(klass, id)
+ VALUE klass;
+ ID id;
+{
+ int noex;
+
+ return rb_get_method_body(&klass, &id, &noex);
+}
+
static void
remove_method(klass, mid)
VALUE klass;