Method: RuboCop::Cop::Layout::FirstArrayElementLineBreak#on_array

Defined in:
lib/rubocop/cop/layout/first_array_element_line_break.rb

#on_array(node) ⇒ Object



26
27
28
29
30
# File 'lib/rubocop/cop/layout/first_array_element_line_break.rb', line 26

def on_array(node)
  return if !node.loc.begin && !assignment_on_same_line?(node)

  check_children_line_break(node, node.children)
end