Class: FixtureFox::AstRecordElement
- Inherits:
-
AstElement
- Object
- AstNode
- AstElement
- FixtureFox::AstRecordElement
- Includes:
- AstRecord
- Defined in:
- lib/fixture_fox/ast.rb
Overview
Table record element
Instance Attribute Summary collapse
-
#anchor ⇒ Object
readonly
Anchor token.
-
#id ⇒ Object
Assigned by the analyzer.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(table, anchor = nil) ⇒ AstRecordElement
constructor
A new instance of AstRecordElement.
- #to_s ⇒ Object
Methods inherited from AstNode
Constructor Details
#initialize(table, anchor = nil) ⇒ AstRecordElement
Returns a new instance of AstRecordElement.
87 88 89 90 |
# File 'lib/fixture_fox/ast.rb', line 87 def initialize(table, anchor = nil) super(table) @anchor = anchor end |
Instance Attribute Details
#anchor ⇒ Object (readonly)
Anchor token. Can be nil
84 85 86 |
# File 'lib/fixture_fox/ast.rb', line 84 def anchor @anchor end |
#id ⇒ Object
Assigned by the analyzer
85 86 87 |
# File 'lib/fixture_fox/ast.rb', line 85 def id @id end |
Instance Method Details
#to_s ⇒ Object
92 |
# File 'lib/fixture_fox/ast.rb', line 92 def to_s() "AstRecordElement" + (anchor ? " #{anchor.litt}" : "") end |