Class: Riml::ElseifNode

Inherits:
ControlStructure show all
Includes:
Visitable, Walkable
Defined in:
lib/nodes.rb

Constant Summary

Constants included from Visitable

Visitable::DESCENDANT_OF_REGEX

Instance Attribute Summary

Attributes included from Visitable

#compiled_output, #force_newline, #parent_node, #scope

Attributes inherited from ControlStructure

#body, #condition

Instance Method Summary collapse

Methods included from Walkable

#child_after, #child_previous_to, #each, #index_by_children, #index_by_member, #insert_after, #insert_before, #next, #previous, #remove, #replace_with

Methods included from Visitable

#accept, #method_missing, #respond_to?

Methods inherited from ControlStructure

#wrap_condition_in_parens!

Methods included from Indentable

#indent, #indented?, #outdent

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Riml::Visitable

Instance Method Details

#<<(expr) ⇒ Object



819
820
821
822
# File 'lib/nodes.rb', line 819

def <<(expr)
  expressions << expr
  self
end

#childrenObject



832
833
834
# File 'lib/nodes.rb', line 832

def children
  [condition, body]
end

#lastObject



828
829
830
# File 'lib/nodes.rb', line 828

def last
  expressions.last
end

#popObject



824
825
826
# File 'lib/nodes.rb', line 824

def pop
  expressions.pop
end