Class: FixtureFox::AstRecordMember
- Includes:
- AstRecord
- Defined in:
- lib/fixture_fox/ast.rb
Instance Attribute Summary collapse
-
#anchor ⇒ Object
readonly
Can be nil.
-
#id ⇒ Object
Assigned by the analyzer.
Attributes inherited from AstMember
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(record, ident, anchor = nil) ⇒ AstRecordMember
constructor
A new instance of AstRecordMember.
- #to_s ⇒ Object
Methods inherited from AstNode
Constructor Details
#initialize(record, ident, anchor = nil) ⇒ AstRecordMember
Returns a new instance of AstRecordMember.
135 136 137 138 |
# File 'lib/fixture_fox/ast.rb', line 135 def initialize(record, ident, anchor = nil) super(record, ident) @anchor = anchor end |
Instance Attribute Details
#anchor ⇒ Object (readonly)
Can be nil
132 133 134 |
# File 'lib/fixture_fox/ast.rb', line 132 def anchor @anchor end |
#id ⇒ Object
Assigned by the analyzer
133 134 135 |
# File 'lib/fixture_fox/ast.rb', line 133 def id @id end |
Instance Method Details
#to_s ⇒ Object
140 |
# File 'lib/fixture_fox/ast.rb', line 140 def to_s() "#{ident}: AstRecordMember" + (anchor ? " #{anchor.litt}" : "") end |