提交 53a13083 编写于 作者: X Xavier Noria

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

上级 59023915
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册