Class: Piggly::Parser::Nodes::Block

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

Overview

DECLARE declaration BEGIN body END;

Instance Attribute Summary

Attributes inherited from NodeClass

#source_text

Instance Method Summary collapse

Methods inherited from Statement

#statement?, #terminal?

Methods inherited from NodeClass

#assignment?, #branch?, #comment?, #datatype?, #else?, #expression?, #for?, #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

#block?Boolean

Returns:

  • (Boolean)


127
128
129
# File 'lib/piggly/parser/nodes.rb', line 127

def block?
  true
end