Re:Ruby 2.2.0-preview1 Released
by dragonwriter on Thursday September 18, 2014 @04:34PM
(#8337482)
> An object can respond to a message even though it doesn't have a method with that name.
Sure, by using a different method (method_missing); its still all method calls.
Re:Ruby 2.2.0-preview1 Released
by throwaway0010 on Saturday September 20, 2014 @07:14PM
(#8345845)
Yes and the responses are implemented with methods. Always.
An object can respond to a message even though it doesn't have a method with that name. A classic example are Rails' dynamic finders: