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 Method Summary
- - 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 '/var/www/sass-pages/.haml/lib/sass/selector.rb', line 26
def to_a
["&"]
end
|
- unify(sels)
Always raises an exception.
34 35 36 |
# File '/var/www/sass-pages/.haml/lib/sass/selector.rb', line 34
def unify(sels)
raise Sass::SyntaxError.new("[BUG] Cannot unify parent selectors.")
end
|