Class: Sass::Tree::IfNode
Instance Attribute Summary collapse
-
#else ⇒ Object
Returns the value of attribute else.
Attributes inherited from Node
Instance Method Summary collapse
- #add_else(node) ⇒ Object
-
#initialize(expr, options) ⇒ IfNode
constructor
A new instance of IfNode.
Methods inherited from Node
#<<, #==, #last, #perform, #to_s, #to_sass
Constructor Details
#initialize(expr, options) ⇒ IfNode
Returns a new instance of IfNode.
7 8 9 10 11 |
# File 'lib/sass/tree/if_node.rb', line 7 def initialize(expr, ) @expr = expr @last_else = self super() end |
Instance Attribute Details
#else ⇒ Object
Returns the value of attribute else.
5 6 7 |
# File 'lib/sass/tree/if_node.rb', line 5 def else @else end |
Instance Method Details
#add_else(node) ⇒ Object
13 14 15 16 |
# File 'lib/sass/tree/if_node.rb', line 13 def add_else(node) @last_else.else = node @last_else = node end |