Class: Piggly::Parser::Nodes::Loop

Inherits:
Statement show all
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

ForEachLoop, ForLoop, WhileLoop

Instance Attribute Summary

Attributes inherited from NodeClass

#source_text

Instance Method Summary collapse

Methods inherited from Statement

#statement?, #terminal?

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

Returns:



203
204
205
# File 'lib/piggly/parser/nodes.rb', line 203

def loop?
  true
end