Class: Spoom::Model::Constant
- Defined in:
- lib/spoom/model/model.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from SymbolDef
Instance Method Summary collapse
-
#initialize(symbol, owner:, location:, value:) ⇒ Constant
constructor
A new instance of Constant.
Methods inherited from SymbolDef
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
#value ⇒ Object (readonly)
Returns the value of attribute value.
140 141 142 |
# File 'lib/spoom/model/model.rb', line 140 def value @value end |