Chad Pytel
Founder and CEO · Not a member
Chad Pytel's latest activity
Monday, September 22 2008
984
Make it possible to alias delegation methods
was updated
in Ruby on Rails
-
Chad Pytel commented at 2:47 PMI'm not sure I follow your question, or see what using the prefix of :to doesn't work in that case?
Monday, September 15 2008
984
Make it possible to alias delegation methods
was updated
in Ruby on Rails
-
Chad Pytel commented at 12:42 PMDaniel, I think you mean more sensible than the @@@:as@@@ option? If so, I probably won't have a chance to do this soon, so feel free to take a go at it.
Saturday, September 13 2008
984
Make it possible to alias delegation methods
was updated
in Ruby on Rails
-
Chad Pytel commented at 8:34 PMI ran into this when I was exploring how best to fix Law of Demeter violations. While you can certainly do "def client_name;client.name;end", your model ends up...
-
Chad Pytel commented at 7:54 PMIt appears that your patch to add :as doesn't add support for when multiple methods are being delegated to an object, such as
delegate :name, :address, :to =...