Method: Sass::Script::Value::Helpers#var?
- Defined in:
- lib/sass/script/value/helpers.rb
#var?(literal) ⇒ Boolean
Returns true when the literal is a string containing a var().
220 221 222 |
# File 'lib/sass/script/value/helpers.rb', line 220
def var?(literal)
literal.is_a?(Sass::Script::Value::String) && literal.value =~ /var\(/
end
|