Method: RuboCop::Cop::Layout::FirstArrayElementLineBreak#on_array
- Defined in:
- lib/rubocop/cop/layout/first_array_element_line_break.rb
#on_array(node) ⇒ Object
49 50 51 52 53 |
# File 'lib/rubocop/cop/layout/first_array_element_line_break.rb', line 49 def on_array(node) return if !node.loc.begin && !assignment_on_same_line?(node) check_children_line_break(node, node.children, ignore_last: ignore_last_element?) end |