Class: Spoom::Model::Constant
- Defined in:
- lib/spoom/model/model.rb
Instance Attribute Summary collapse
- #value ⇒ Object readonly
Attributes inherited from SymbolDef
#comments, #location, #owner, #symbol
Instance Method Summary collapse
-
#initialize(symbol, owner:, location:, value:, comments: []) ⇒ Constant
constructor
A new instance of Constant.
Methods inherited from SymbolDef
Constructor Details
#initialize(symbol, owner:, location:, value:, comments: []) ⇒ Constant
Returns a new instance of Constant.
153 154 155 156 157 |
# File 'lib/spoom/model/model.rb', line 153 def initialize(symbol, owner:, location:, value:, comments: []) super(symbol, owner: owner, location: location, comments: comments) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
150 151 152 |
# File 'lib/spoom/model/model.rb', line 150 def value @value end |