Class: Hashformer::Generate::Constant

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#valueObject (readonly)

Returns the value of attribute value.



224
225
226
# File 'lib/hashformer/generate.rb', line 224

def value
  @value
end