lib/rubocop/cop/layout/multiline_block_layout.rb in rubocop-1.34.1 vs lib/rubocop/cop/layout/multiline_block_layout.rb in rubocop-1.35.0
- old
+ new
@@ -66,9 +66,11 @@
return unless node.body && same_line?(node.loc.begin, node.body)
add_offense_for_expression(node, node.body, MSG)
end
+ alias on_numblock on_block
+
private
def args_on_beginning_line?(node)
!node.arguments? || node.loc.begin.line == node.arguments.loc.last_line
end