Class: Hashformer::Generate::Constant
- Inherits:
-
Object
- Object
- Hashformer::Generate::Constant
- Defined in:
- lib/hashformer/generate.rb
Overview
Internal representation of a constant output value. Do not instantiate directly; call Hashformer::Generate.const (or HF::G.const) instead.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Constant
constructor
A new instance of Constant.
Constructor Details
#initialize(value) ⇒ Constant
Returns a new instance of Constant.
226 227 228 |
# File 'lib/hashformer/generate.rb', line 226 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
224 225 226 |
# File 'lib/hashformer/generate.rb', line 224 def value @value end |