Class: Rubasteme::AST::IdentifierNode

Inherits:
LeafNode show all
Defined in:
lib/rubasteme/ast/leaf_node.rb

Instance Attribute Summary

Attributes inherited from LeafNode

#literal

Instance Method Summary collapse

Methods inherited from LeafNode

#to_a

Methods inherited from Node

#to_a, #to_s, #type

Constructor Details

#initialize(literal) ⇒ IdentifierNode

Returns a new instance of IdentifierNode.



32
33
34
# File 'lib/rubasteme/ast/leaf_node.rb', line 32

def initialize(literal)
  super
end

Instance Method Details

#identifierObject



36
37
38
# File 'lib/rubasteme/ast/leaf_node.rb', line 36

def identifier
  literal
end