@Jon: I could change the implementation to check `args.length` and
raise ArgumentError if the result is greater than 1. But wouldn't it
suffice to simply define the writer methods with only one argument?

@Xavier: I think users perceive `delegate` as a shorthand for:

  def foo
    @target.foo
  end

and not

  def foo
    @target.__send__(:foo)
  end

so I actually believe the proposed semantics more closely resembles
the perception. That's just my point of view, of course.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to