From: Robert Klemme Date: 2009-05-07T01:40:39+09:00 Subject: Re: delegate and unless for __ On 05.05.2009 22:50, Raj Singh wrote: > Anytime I see the delegate code usually there is an unless along with > it. The code might look like this. > > Object.instance_methods.each do |m| > delegate m, :to => :@model unless m =~ /^__/ > end > > > I am thinking that __ is escaped so that one could called > object.__SEND__ and this call will not be sent to the delegate. Is that > the reason why __ is not delegated to the delegate or the actual > reasoning is something else? I think you're spot on. There seems to be a convention that method whose names start with underscores are not really meant to be part of the regular public interface (such as "__send__"). Kind regards robert