Class: Sass::Selector::Parent
Overview
A parent-referencing selector (&
in Sass).
The function of this is to be replaced by the parent selector
in the nested hierarchy.
Instance Attribute Summary
Attributes inherited from Simple
Instance Method Summary collapse
- #to_a
-
#unify(sels)
Always raises an exception.
Methods inherited from Simple
#eql?, #hash, #inspect, #unify_namespaces
Instance Method Details
#to_a
26 27 28 |
# File 'lib/sass/selector.rb', line 26
def to_a
["&"]
end
|
#unify(sels)
Always raises an exception.
34 35 36 |
# File 'lib/sass/selector.rb', line 34
def unify(sels)
raise Sass::SyntaxError.new("[BUG] Cannot unify parent selectors.")
end
|