class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses

Checks for unwanted parentheses in parameterless method calls.

This cop’s allowed methods can be customized with ‘AllowedMethods`. By default, there are no allowed methods.

NOTE: This cop allows the use of ‘it()` without arguments in blocks, as in `0.times { it() }`, following `Lint/ItWithoutArgumentsInBlock` cop.

@example

# bad
object.some_method()

# good
object.some_method

@example AllowedMethods: [] (default)

# bad
object.foo()

@example AllowedMethods: [foo]

# good
object.foo()