lib/swagger/reference.rb
Method Swagger::Reference#name
is defined at both lib/swagger/reference.rb:3 and lib/swagger/reference.rb:28. Open
Open
def name
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for duplicated instance (or singleton) method definitions.
Example:
# bad
def duplicated
1
end
def duplicated
2
end
Example:
# bad
def duplicated
1
end
alias duplicated other_duplicated
Example:
# good
def duplicated
1
end
def other_duplicated
2
end