Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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
    Chad Pytel commented at 2:47 PM

    I'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
    Chad Pytel commented at 12:42 PM

    Daniel, 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
    Chad Pytel commented at 8:34 PM

    I 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
    Chad Pytel commented at 7:54 PM

    It 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 =...