This cop checks for braces in method calls with hash parameters.
# File lib/rubocop/cop/style/braces_around_hash_parameters.rb, line 9 def on_send(node) _receiver, method_name, *args = *node # Discard attr writer methods. return if method_name.to_s.end_with?('=') # Discard operator methods. return if operator?(method_name) # We care only for the last argument. arg = args.last check(arg, args) if non_empty_hash?(arg) end
Generated with the Darkfish Rdoc Generator 2.