Class: Riml::ElseifNode
- Inherits:
-
ControlStructure
- Object
- Struct
- ControlStructure
- Riml::ElseifNode
- 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
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
Methods included from Indentable
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 |
#children ⇒ Object
832 833 834 |
# File 'lib/nodes.rb', line 832 def children [condition, body] end |
#last ⇒ Object
828 829 830 |
# File 'lib/nodes.rb', line 828 def last expressions.last end |
#pop ⇒ Object
824 825 826 |
# File 'lib/nodes.rb', line 824 def pop expressions.pop end |