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 = nil)
-
name
(String, nil
) -- See \{#suffix}
def initialize(suffix = nil) @suffix = suffix end
def to_s(opts = {})
- See: Selector#to_s -
def to_s(opts = {}) "&" + (@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