Class: Spoom::Model::Constant

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

Instance Attribute Summary collapse

Attributes inherited from SymbolDef

#comments, #location, #owner, #symbol

Instance Method Summary collapse

Methods inherited from SymbolDef

#full_name, #name

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

#valueObject (readonly)

: String



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

def value
  @value
end