class Sass::Selector::Interpolation - sass-3.2.19 Documentation

# class Sass::Selector::Interpolation

Selector interpolation (`#{}` in Sass).

### Attributes

script[R]

The script to run.

@return [Sass::Script::Node]

### Public Class Methods

new(script) click to toggle source

@param script [Sass::Script::Node] The script to run

    # File lib/sass/selector.rb, line 269
    def initialize(script)
      @script = script
    end

### Public Instance Methods

to_a() click to toggle source

@see Selector#to_a

    # File lib/sass/selector.rb, line 274
    def to_a
      [@script]
    end

unify(sels) click to toggle source

Always raises an exception.

@raise [Sass::SyntaxError] Interpolation selectors should be resolved before unification @see Selector#unify

    # File lib/sass/selector.rb, line 282
    def unify(sels)
      raise Sass::SyntaxError.new("[BUG] Cannot unify interpolation selectors.")
    end