lib/sandwich/entities/nutrition_facts.rb
When defining the /
operator, name its argument other
. Invalid
Invalid
def /(value)
- Read upRead up
- Exclude checks
This cop makes sure that certain binary operator methods have their
sole parameter named other
.
Example:
# bad
def +(amount); end
# good
def +(other); end
When defining the *
operator, name its argument other
. Invalid
Invalid
def *(value)
- Read upRead up
- Exclude checks
This cop makes sure that certain binary operator methods have their
sole parameter named other
.
Example:
# bad
def +(amount); end
# good
def +(other); end