Class: Sass::Selector::Interpolation
- Defined in:
- lib/sass/selector.rb
Overview
Selector interpolation (#{}
in Sass).
Instance Attribute Summary collapse
-
#script ⇒ Sass::Script::Tree::Node
readonly
The script to run.
Attributes inherited from Simple
Instance Method Summary collapse
-
#initialize(script) ⇒ Interpolation
constructor
A new instance of Interpolation.
- #to_a
-
#unify(sels)
Always raises an exception.
Methods inherited from Simple
#eql?, #equality_key, #hash, #inspect, #to_s, #unify_namespaces
Constructor Details
#initialize(script) ⇒ Interpolation
Returns a new instance of Interpolation.
277 278 279 |
# File 'lib/sass/selector.rb', line 277
def initialize(script)
@script = script
end
|
Instance Attribute Details
#script ⇒ Sass::Script::Tree::Node (readonly)
The script to run.
274 275 276 |
# File 'lib/sass/selector.rb', line 274
def script
@script
end
|
Instance Method Details
#to_a
282 283 284 |
# File 'lib/sass/selector.rb', line 282
def to_a
[@script]
end
|
#unify(sels)
Always raises an exception.
290 291 292 |
# File 'lib/sass/selector.rb', line 290
def unify(sels)
raise Sass::SyntaxError.new("[BUG] Cannot unify interpolation selectors.")
end
|