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 = [])
-
name
(Array
) -- See \{#suffix}
def initialize(suffix = []) @suffix = suffix end
def to_a
- See: Selector#to_a -
def to_a ["&", *@suffix] end
def unify(sels)
- 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