Class: Spoom::Model::Constant
- Defined in:
- lib/spoom/model/model.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
: String.
Attributes inherited from SymbolDef
#comments, #location, #owner, #symbol
Instance Method Summary collapse
-
#initialize(symbol, owner:, location:, value:, comments: []) ⇒ Constant
constructor
: (Symbol symbol, owner: Namespace?, location: Location, value: String, ?comments: Array) -> void.
Methods inherited from SymbolDef
Constructor Details
#initialize(symbol, owner:, location:, value:, comments: []) ⇒ Constant
: (Symbol symbol, owner: Namespace?, location: Location, value: String, ?comments: Array) -> void
147 148 149 150 151 |
# File 'lib/spoom/model/model.rb', line 147 def initialize(symbol, owner:, location:, value:, comments: []) super(symbol, owner: owner, location: location, comments: comments) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
: String
144 145 146 |
# File 'lib/spoom/model/model.rb', line 144 def value @value end |