From: Trans Date: 2005-08-29T23:51:22+09:00 Subject: Re: Method behaves differently when called using #send David A. Black wrote: > I think I would have problems with what you're describing. This seems > odd to me: > > class C > private > def x > "x" > end > > public > def method_missing(m) > "method_missing: #{m}" > end > > def y > x # public x? no; method_missing? yes > # (never gets to the point of checking for > # private x) > end > end > > C.new.y # "method_missing: x" > > I'm not sure exactly why, but that feels wrong. More concretely: if > you tried to call a private method *from* method_missing, you'd get > into an infinite loop. So implementations of method_missing would be > limited. Looking at this I left to wonder, would it make sense to have a public_method_missing()? T.