Class: Sass::Tree::IfNode
Instance Attribute Summary collapse
-
#else ⇒ Object
Returns the value of attribute else.
Attributes inherited from Node
#children, #filename, #line, #options
Instance Method Summary collapse
- #add_else(node) ⇒ Object
-
#initialize(expr) ⇒ IfNode
constructor
A new instance of IfNode.
- #options=(options) ⇒ Object
Methods inherited from Node
#<<, #==, #invisible?, #last, #perform, #render, #style, #to_s, #to_sass
Constructor Details
#initialize(expr) ⇒ 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 |