Class: SbuilderSexp::Label

Inherits:
Root show all
Defined in:
lib/parser/parser_nodes.rb

Overview


optional statement label

Instance Method Summary collapse

Methods inherited from Treetop::Runtime::SyntaxNode

#node_type, #recursive_inject, #recursive_inject_parent, #recursive_select, #value

Instance Method Details

#labelObject



1070
1071
1072
# File 'lib/parser/parser_nodes.rb', line 1070

def label
  recursive_select(SbuilderSexp::Identifier).first.node_value
end

#node_valueObject



1074
1075
1076
# File 'lib/parser/parser_nodes.rb', line 1074

def node_value
  label if respond_to?( :label )
end