diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-14 23:54:06 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-14 23:54:06 +0000 |
commit | ba2147ba40a147c10da3f8e202b4f78488bab6d9 (patch) | |
tree | 9f279add5f9f86d3340ec0be83469291a2601bbc /eval.c | |
parent | 83e19791ef93da8f13eab296abcc2d9afe320ab8 (diff) | |
download | ruby-ba2147ba40a147c10da3f8e202b4f78488bab6d9.tar.gz |
* eval.c (rb_method_node): new API to retrieve method body.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; |