Class: Foxtail::Syntax::Parser::AST::Identifier
- Inherits:
-
SyntaxNode
- Object
- BaseNode
- SyntaxNode
- Foxtail::Syntax::Parser::AST::Identifier
- Defined in:
- lib/foxtail/syntax/parser/ast/identifier.rb
Overview
Represents identifiers used for messages, terms, attributes, and function names
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from SyntaxNode
Attributes inherited from BaseNode
Instance Method Summary collapse
-
#initialize(name) ⇒ Identifier
constructor
A new instance of Identifier.
Methods inherited from SyntaxNode
Methods inherited from BaseNode
#==, #accept, #children, #to_h
Constructor Details
#initialize(name) ⇒ Identifier
Returns a new instance of Identifier.
11 12 13 14 |
# File 'lib/foxtail/syntax/parser/ast/identifier.rb', line 11 def initialize(name) super() @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/foxtail/syntax/parser/ast/identifier.rb', line 9 def name @name end |