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

# class Sass::Supports::Interpolation

An interpolation condition (e.g. `#{$var}`).

### Attributes

resolved_value[RW]

The value of the expression after it's been resolved. Only set once {Tree::Visitors::Perform} has been run.

@return [String]

value[RW]

The SassScript expression in the interpolation.

@param [Sass::Script::Node]

### Public Class Methods

new(value) click to toggle source

    # File lib/sass/supports.rb, line 202
    def initialize(value)
      @value = value
    end

### Public Instance Methods

deep_copy() click to toggle source

    # File lib/sass/supports.rb, line 219
    def deep_copy
      copy = dup
      copy.value = @value.deep_copy
      copy
    end

options=(options) click to toggle source

    # File lib/sass/supports.rb, line 225
    def options=(options)
      @value.options = options
    end

perform(env) click to toggle source

    # File lib/sass/supports.rb, line 206
    def perform(env)
      val = value.perform(env)
      @resolved_value = val.is_a?(Sass::Script::String) ? val.value : val.to_s
    end

to_css() click to toggle source

    # File lib/sass/supports.rb, line 211
    def to_css
      @resolved_value
    end

to_src(options) click to toggle source

    # File lib/sass/supports.rb, line 215
    def to_src(options)
      "\#{#{@value.to_sass(options)}}"
    end