class RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout

)
b
a,
def foo(
# same_line: bad
# new_line: good
# symmetrical: good
b)
def foo(a,
# same_line: good
# new_line: bad
# symmetrical: good
b)
a,
def foo(
# same_line: good
# new_line: bad
# symmetrical: bad
)
b
def foo(a,
# same_line: bad
# new_line: good
# symmetrical: bad
@example
line as the last parameter of the definition.
The closing brace of a multi-line method definition must be on the same
When using the ‘same_line` style:
after the last parameter of the definition.
The closing brace of a multi-line method definition must be on the line
When using the `new_line` style:
line below the last parameter of the definition.
parameter of the definition, then the closing brace should be on the
If an method definition’s opening brace is on the line above the first
on the same line as the last parameter of the definition.
first parameter of the definition, then the closing brace should be
If a method definition’s opening brace is on the same line as the
When using the ‘symmetrical` (default) style:
on the same line as the last method parameter, or a new line.
This cop checks that the closing brace in a method definition is either

def on_def(node)

def on_def(node)
  check_brace_layout(node.arguments)
end