Class: FixtureFox::AstReferenceMember
- Defined in:
- lib/fixture_fox/ast.rb
Instance Attribute Summary collapse
-
#reference ⇒ Object
readonly
Reference token.
-
#referenced_anchor ⇒ Object
attr_accessor :referenced_node # Initialized by the analyzer.
Attributes inherited from AstMember
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(record, ident, reference) ⇒ AstReferenceMember
constructor
A new instance of AstReferenceMember.
- #to_s ⇒ Object
Methods inherited from AstNode
Constructor Details
#initialize(record, ident, reference) ⇒ AstReferenceMember
Returns a new instance of AstReferenceMember.
148 149 150 151 |
# File 'lib/fixture_fox/ast.rb', line 148 def initialize(record, ident, reference) super(record, ident) @reference = reference end |
Instance Attribute Details
#reference ⇒ Object (readonly)
Reference token
144 145 146 |
# File 'lib/fixture_fox/ast.rb', line 144 def reference @reference end |
#referenced_anchor ⇒ Object
attr_accessor :referenced_node # Initialized by the analyzer
146 147 148 |
# File 'lib/fixture_fox/ast.rb', line 146 def referenced_anchor @referenced_anchor end |
Instance Method Details
#to_s ⇒ Object
153 |
# File 'lib/fixture_fox/ast.rb', line 153 def to_s() "#{ident}: AstReferenceMember #{reference.litt}" end |