Class: Piggly::Parser::Nodes::Token

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

Instance Attribute Summary

Attributes inherited from NodeClass

#source_text

Instance Method Summary collapse

Methods inherited from Terminal

#initialize, #terminal?

Methods inherited from NodeClass

#assignment?, #block?, #branch?, #comment?, #datatype?, #else?, #expression?, #for?, #identifier?, #if?, #indent, #keyword?, #label?, #loop?, #named?, #sql?, #statement?, #string?, #stub?, #style, #tag, #tag_id, #tagged?, #while?, #whitespace?

Methods included from Traversal

#count, #find, #flatten, #inject, #select

Constructor Details

This class inherits a constructor from Piggly::Parser::Nodes::Terminal

Instance Method Details

#token?Boolean

Returns:

  • (Boolean)


297
298
299
# File 'lib/piggly/parser/nodes.rb', line 297

def token?
  true
end