Class: Piggly::Parser::Nodes::ForEachLoop

Inherits:
Loop show all
Defined in:
lib/piggly/parser/nodes.rb

Overview

FOREACH var IN ARRAY expr LOOP body END

Instance Attribute Summary

Attributes inherited from NodeClass

#source_text

Instance Method Summary collapse

Methods inherited from Loop

#loop?

Methods inherited from Statement

#statement?, #terminal?

Methods inherited from NodeClass

#assignment?, #block?, #branch?, #comment?, #datatype?, #else?, #expression?, #identifier?, #if?, #indent, #keyword?, #label?, #loop?, #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

#for?Boolean

Returns:



217
218
219
# File 'lib/piggly/parser/nodes.rb', line 217

def for?
  true
end