Class: FixtureFox::AstRecordElement

Inherits:
AstElement show all
Includes:
AstRecord
Defined in:
lib/fixture_fox/ast.rb

Overview

Table record element

Instance Attribute Summary collapse

Attributes inherited from AstNode

#children, #parent, #type

Instance Method Summary collapse

Methods inherited from AstNode

#dump, #inspect

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

#anchorObject (readonly)

Anchor token. Can be nil



84
85
86
# File 'lib/fixture_fox/ast.rb', line 84

def anchor
  @anchor
end

#idObject

Assigned by the analyzer



85
86
87
# File 'lib/fixture_fox/ast.rb', line 85

def id
  @id
end

Instance Method Details

#to_sObject



92
# File 'lib/fixture_fox/ast.rb', line 92

def to_s() "AstRecordElement" + (anchor ? " #{anchor.litt}" : "") end