class Sass::Selector::Parent

in the nested hierarchy.
The function of this is to be replaced by the parent selector
A parent-referencing selector (‘&` in Sass).

def initialize(suffix = [])

Parameters:
  • name (Array) -- See \{#suffix}
def initialize(suffix = [])
  @suffix = suffix
end

def to_a

Other tags:
    See: Selector#to_a -
def to_a
  ["&", *@suffix]
end

def unify(sels)

Other tags:
    See: Selector#unify -

Raises:
  • (Sass::SyntaxError) - Parent selectors should be resolved before unification
def unify(sels)
  raise Sass::SyntaxError.new("[BUG] Cannot unify parent selectors.")
end