Skip to content

Commit

Permalink
Remove extra parens
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed May 17, 2011
1 parent 6f09456 commit e537e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rdoc/any_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def initialize text, name
##
# Adds +an_alias+ as an alias for this method in +context+.

def add_alias(an_alias, context = nil )
def add_alias an_alias, context = nil
method = self.class.new an_alias.text, an_alias.new_name

method.record_location an_alias.file
Expand All @@ -54,7 +54,7 @@ def add_alias(an_alias, context = nil )
method.comment = an_alias.comment
method.is_alias_for = self
@aliases << method
context.add_method( method ) if context
context.add_method method if context
method
end

Expand Down

0 comments on commit e537e90

Please sign in to comment.