class Rubocop::Cop::Style::MethodCallParentheses
This cop checks for unwanted parentheses in parameterless method calls.
Constants
- MSG
Public Instance Methods
on_send(node)
click to toggle source
Calls superclass method
# File lib/rubocop/cop/style/method_call_parentheses.rb, line 10 def on_send(node) _receiver, _method_name, *args = *node if args.empty? && node.loc.begin add_offence(:convention, node.loc.begin, MSG) end super end