Class: FixtureFox::AstReferenceElement
- Inherits:
-
AstElement
- Object
- AstNode
- AstElement
- FixtureFox::AstReferenceElement
- Defined in:
- lib/fixture_fox/ast.rb
Overview
Table reference element
Instance Attribute Summary collapse
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#referenced_anchor ⇒ Object
attr_accessor :referenced_node # Initialized by the analyzer.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(table, reference) ⇒ AstReferenceElement
constructor
A new instance of AstReferenceElement.
- #to_s ⇒ Object
Methods inherited from AstNode
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
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
96 97 98 |
# File 'lib/fixture_fox/ast.rb', line 96 def reference @reference end |
#referenced_anchor ⇒ Object
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_s ⇒ Object
105 |
# File 'lib/fixture_fox/ast.rb', line 105 def to_s() "AstReferenceElement #{reference.litt}" end |