Class: Piggly::Parser::Nodes::TLabel

Inherits:
Token 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 Token

#token?

Methods inherited from Terminal

#initialize, #terminal?

Methods inherited from NodeClass

#assignment?, #block?, #branch?, #comment?, #datatype?, #else?, #expression?, #for?, #identifier?, #if?, #indent, #keyword?, #loop?, #named?, #sql?, #statement?, #string?, #stub?, #tag, #tag_id, #tagged?, #token?, #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

#label?Boolean

Returns:

  • (Boolean)


354
355
356
# File 'lib/piggly/parser/nodes.rb', line 354

def label?
  true
end

#styleObject



353
# File 'lib/piggly/parser/nodes.rb', line 353

def style; "tL"; end