Class: Piggly::Parser::Nodes::Loop
- Defined in:
- lib/piggly/parser/nodes.rb
Overview
Loops that have a child named :cond (which should be either an Expression or Sql node) will get a LoopCondTag from the #tag method
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from NodeClass
Instance Method Summary collapse
Methods inherited from Statement
Methods inherited from NodeClass
#assignment?, #block?, #branch?, #comment?, #datatype?, #else?, #expression?, #for?, #identifier?, #if?, #indent, #keyword?, #label?, #named?, #sql?, #statement?, #string?, #stub?, #style, #tag, #tag_id, #tagged?, #token?, #while?, #whitespace?
Methods included from Traversal
#count, #find, #flatten, #inject, #select
Instance Method Details
#loop? ⇒ Boolean
203 204 205 |
# File 'lib/piggly/parser/nodes.rb', line 203 def loop? true end |