method
add_alias_impl
v1_9_1_378 -
Show latest stable
-
0 notes -
Class: RDoc::Context
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (38)
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
add_alias_impl(an_alias, meth)
public
Hide source
# 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