class Sass::Selector::Parent - sass-3.2.19 Documentation

# class Sass::Selector::Parent

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

### Public Instance Methods

to_a() click to toggle source

@see Selector#to_a

    # File lib/sass/selector.rb, line 33
    def to_a
      ["&"]
    end

unify(sels) click to toggle source

Always raises an exception.

@raise [Sass::SyntaxError] Parent selectors should be resolved before unification @see Selector#unify

    # File lib/sass/selector.rb, line 41
    def unify(sels)
      raise Sass::SyntaxError.new("[BUG] Cannot unify parent selectors.")
    end