method
add_alias_impl
v1_9_1_378 -
Show latest stable
- Class:
RDoc::Context
add_alias_impl(an_alias, meth)public
No documentation available.
# File lib/rdoc/code_objects.rb, line 334
def add_alias_impl(an_alias, meth)
new_meth = AnyMethod.new(an_alias.text, an_alias.new_name)
new_meth.is_alias_for = meth
new_meth.singleton = meth.singleton
new_meth.params = meth.params
new_meth.comment = "Alias for \##{meth.name}"
meth.add_alias(new_meth)
add_method(new_meth)
end