mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import RDoc 3.5.2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d8ebf3829f
commit
8aa895294b
17 changed files with 564 additions and 290 deletions
|
@ -44,7 +44,7 @@ class RDoc::AnyMethod < RDoc::MethodAttr
|
|||
##
|
||||
# Adds +an_alias+ as an alias for this method in +context+.
|
||||
|
||||
def add_alias(an_alias, context)
|
||||
def add_alias(an_alias, context = nil )
|
||||
method = self.class.new an_alias.text, an_alias.new_name
|
||||
|
||||
method.record_location an_alias.file
|
||||
|
@ -54,7 +54,7 @@ class RDoc::AnyMethod < RDoc::MethodAttr
|
|||
method.comment = an_alias.comment
|
||||
method.is_alias_for = self
|
||||
@aliases << method
|
||||
context.add_method method
|
||||
context.add_method( method ) if context
|
||||
method
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue