Class: FixtureFox::AstReferenceElement

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

Overview

Table reference 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, reference) ⇒ AstReferenceElement

Returns a new instance of AstReferenceElement.



100
101
102
103
# File 'lib/fixture_fox/ast.rb', line 100

def initialize(table, reference)
  super(table)
  @reference = reference
end

Instance Attribute Details

#referenceObject (readonly)

Returns the value of attribute reference.



96
97
98
# File 'lib/fixture_fox/ast.rb', line 96

def reference
  @reference
end

#referenced_anchorObject

attr_accessor :referenced_node # Initialized by the analyzer



98
99
100
# File 'lib/fixture_fox/ast.rb', line 98

def referenced_anchor
  @referenced_anchor
end

Instance Method Details

#to_sObject



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

def to_s() "AstReferenceElement #{reference.litt}" end