Class: Sass::Supports::Interpolation
- Inherits:
-  Condition - Object
- Condition
- Sass::Supports::Interpolation
 
- Defined in:
- /Users/ceppstei/Projects/sass-lang/.sass/lib/sass/supports.rb
Overview
An interpolation condition (e.g. #{$var}).
Instance Attribute Summary (collapse)
-   - (String) resolved_value   The value of the expression after it’s been resolved. 
-   - (Sass::Script::Tree::Node) value   The SassScript expression in the interpolation. 
Instance Method Summary (collapse)
- - deep_copy
-   - (Interpolation) initialize(value)   constructor A new instance of Interpolation. 
- - options=(options)
- - perform(env)
- - to_css
- - to_src(options)
Constructor Details
- (Interpolation) initialize(value)
Returns a new instance of Interpolation
| 199 200 201 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/supports.rb', line 199
def initialize(value)
  @value = value
end | 
Instance Attribute Details
- (String) resolved_value
The value of the expression after it’s been resolved. Only set once Tree::Visitors::Perform has been run.
| 197 198 199 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/supports.rb', line 197
def resolved_value
  @resolved_value
end | 
- (Sass::Script::Tree::Node) value
The SassScript expression in the interpolation.
| 191 192 193 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/supports.rb', line 191
def value
  @value
end | 
Instance Method Details
- deep_copy
| 215 216 217 218 219 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/supports.rb', line 215
def deep_copy
  copy = dup
  copy.value = @value.deep_copy
  copy
end | 
- options=(options)
| 221 222 223 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/supports.rb', line 221
def options=(options)
  @value.options = options
end | 
- perform(env)
| 203 204 205 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/supports.rb', line 203
def perform(env)
  @resolved_value = value.perform(env).to_s(:quote => :none)
end | 
- to_css
| 207 208 209 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/supports.rb', line 207
def to_css
  @resolved_value
end | 
- to_src(options)
| 211 212 213 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/supports.rb', line 211
def to_src(options)
  @value.to_sass(options)
end |