Class: Sass::Tree::Visitors::Perform
- Inherits:
-
Base
- Object
- Base
- Sass::Tree::Visitors::Perform
- Defined in:
- lib/tinge/ext/sass.rb
Class Attribute Summary collapse
-
.tinge_parser ⇒ Object
Returns the value of attribute tinge_parser.
Instance Method Summary collapse
Class Attribute Details
.tinge_parser ⇒ Object
Returns the value of attribute tinge_parser.
12 13 14 |
# File 'lib/tinge/ext/sass.rb', line 12 def tinge_parser @tinge_parser end |
Instance Method Details
#visit_and_save_variable(node) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/tinge/ext/sass.rb', line 15 def visit_and_save_variable(node) var = @environment.var(node.name) return [] if node.guarded && var && !var.null? val = node.expr.perform(@environment) @environment.set_var(node.name, val) if self.class.tinge_parser self.class.tinge_parser.set_var(node.name, val) end [] end |