1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* proc.c (mnew): Method#new checks for respond_to_missing? with private set to true

[ruby-core:26069]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2009-10-13 23:08:27 +00:00
parent 181eb7d5c1
commit 6615b9a1d2
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Wed Oct 14 08:08:12 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* proc.c (mnew): Method#new checks for respond_to_missing? with
private set to true
[ruby-core:26069]
Tue Oct 13 21:05:01 2009 NARUSE, Yui <naruse@ruby-lang.org>
* tool/enc-unicode.rb,

2
proc.c
View file

@ -902,7 +902,7 @@ mnew(VALUE klass, VALUE obj, ID id, VALUE mclass, int scope)
VALUE sym = ID2SYM(id);
if (obj != Qundef && !rb_method_basic_definition_p(klass, rmiss)) {
if (RTEST(rb_funcall(obj, rmiss, 1, sym))) {
if (RTEST(rb_funcall(obj, rmiss, 2, sym, Qtrue))) {
def = ALLOC(rb_method_definition_t);
def->type = VM_METHOD_TYPE_MISSING;
def->original_id = id;