AS guide: document in Module#delegate that the method must be public in the target

This commit is contained in:
Xavier Noria
2011-08-16 10:34:18 -07:00
parent 5902391567
commit 53a13083ec

View File

@@ -888,7 +888,9 @@ end
It is shorter, and the intention more obvious.
The macro accepts several methods:
The method must be public in the target.
The +delegate+ macro accepts several methods:
<ruby>
delegate :name, :age, :address, :twitter, :to => :profile