Actions
Bug #2199
closedObject#method should call respond_to_missing?(sym, true)
Bug #2199:
Object#method should call respond_to_missing?(sym, true)
ruby -v:
ruby 1.9.2dev (2009-10-13 trunk 25317) [x86_64-darwin10.0.0]
Backport:
Description
=begin
Is there any reason I'm missing?
class A
def respond_to_missing?(method, private = false)
method == :is_private && private
end
end
A.new.method(:is_private2) # ==> #<Method: A#is_private2>...
A.new.method(:is_private) # ==> NameError: undefined method is_private' for class A'
If not:
diff --git a/proc.c b/proc.c
index 5ed3c01..b7c632c 100644
--- a/proc.c
+++ b/proc.c
@@ -902,7 +902,7 @@ mnew(VALUE klass, VALUE obj, ID id, VALUE mclass, int scope)
VALUE sym = ID2SYM(id);
=end
Updated by marcandre (Marc-Andre Lafortune) about 16 years ago
- Subject changed from Object#method should call respond_to_missing(sym, true) to Object#method should call respond_to_missing?(sym, true)
- Assignee set to matz (Yukihiro Matsumoto)
=begin
=end
Updated by marcandre (Marc-Andre Lafortune) about 16 years ago
- Status changed from Open to Closed
=begin
Applied in r25325.
=end
Actions