A dynamic node representing a Sass `@if` statement.
{IfNode}s are a little odd, in that they also represent `@else` and `@else if`s. This is done as a linked list: each {IfNode} has a link ({#else}) to the next {IfNode}.
@see Sass::Tree
# File lib/sass/tree/if_node.rb, line 42 def self._load(data) expr, else_, children = Marshal.load(data) node = IfNode.new(expr) node.else = else_ node.children = children node.instance_variable_set('@last_else', node.else ? node.else.instance_variable_get('@last_else') : node) node end
Generated with the Darkfish Rdoc Generator 2.