class RuboCop::AST::Node

def left_siblings

Returns:
  • (Array) - the left (aka previous) siblings
def left_siblings
  return [].freeze unless parent
  parent.children[0...sibling_index].freeze
end