Class: Sass::Selector::Parent

Inherits:
Simple
  • Object
show all
Defined in:
lib/sass/selector.rb

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

#filename, #line

Instance Method Summary collapse

Methods inherited from Simple

#eql?, #hash, #inspect, #unify_namespaces

Instance Method Details

#to_a

See Also:

  • Selector#to_a


26
27
28
# File 'lib/sass/selector.rb', line 26

def to_a
  ["&"]
end

#unify(sels)

Always raises an exception.

Raises:

See Also:

  • Selector#unify


34
35
36
# File 'lib/sass/selector.rb', line 34

def unify(sels)
  raise Sass::SyntaxError.new("[BUG] Cannot unify parent selectors.")
end