Class: FixtureFox::AstFieldMember
- Defined in:
- lib/fixture_fox/ast.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from AstMember
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(record, ident, value) ⇒ AstFieldMember
constructor
A new instance of AstFieldMember.
- #to_s ⇒ Object
Methods inherited from AstNode
Constructor Details
#initialize(record, ident, value) ⇒ AstFieldMember
Returns a new instance of AstFieldMember.
159 160 161 162 |
# File 'lib/fixture_fox/ast.rb', line 159 def initialize(record, ident, value) super(record, ident) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
157 158 159 |
# File 'lib/fixture_fox/ast.rb', line 157 def value @value end |
Instance Method Details
#to_s ⇒ Object
164 |
# File 'lib/fixture_fox/ast.rb', line 164 def to_s() "#{ident}: #{value}" end |