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, #to_s, #unify_namespaces
Instance Method Details
#to_a
33 34 35 |
# File 'lib/sass/selector.rb', line 33
def to_a
["&"]
end
|
#unify(sels)
Always raises an exception.
41 42 43 |
# File 'lib/sass/selector.rb', line 41
def unify(sels)
raise Sass::SyntaxError.new("[BUG] Cannot unify parent selectors.")
end
|