Should I use alias or alias_method?

后端 未结 7 1758
再見小時候
再見小時候 2020-11-30 16:25

I found a blog post on alias vs. alias_method. As shown in the example given in that blog post, I simply want to alias a method to another within t

7条回答
  •  日久生厌
    2020-11-30 17:01

    A point in favor of alias instead of alias_method is that its semantic is recognized by rdoc, leading to neat cross references in the generated documentation, while rdoc completely ignore alias_method.

提交回复
热议问题