Class: FixtureFox::AstFieldMember

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

Instance Attribute Summary collapse

Attributes inherited from AstMember

#column, #ident

Attributes inherited from AstNode

#children, #parent, #type

Instance Method Summary collapse

Methods inherited from AstNode

#dump, #inspect

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

#valueObject (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_sObject



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

def to_s() "#{ident}: #{value}" end