class RuboCop::AST::Node

def right_siblings

Returns:
  • (Array) - the right (aka next) siblings
def right_siblings
  return [].freeze unless parent
  parent.children[sibling_index + 1..].freeze
end