Class: Spoom::Model::Constant

Inherits:
SymbolDef show all
Defined in:
lib/spoom/model/model.rb

Instance Attribute Summary collapse

Attributes inherited from SymbolDef

#location, #owner, #symbol

Instance Method Summary collapse

Methods inherited from SymbolDef

#full_name, #name

Constructor Details

#initialize(symbol, owner:, location:, value:) ⇒ Constant

Returns a new instance of Constant.



143
144
145
146
147
# File 'lib/spoom/model/model.rb', line 143

def initialize(symbol, owner:, location:, value:)
  super(symbol, owner: owner, location: location)

  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



140
141
142
# File 'lib/spoom/model/model.rb', line 140

def value
  @value
end