Class: Surrogate::Value::BaseValue

Inherits:
Object
  • Object
show all
Defined in:
lib/surrogate/values.rb

Overview

the current set of possible values ===

Direct Known Subclasses

Raisable, ValueQueue

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ BaseValue

Returns a new instance of BaseValue.



23
24
25
# File 'lib/surrogate/values.rb', line 23

def initialize(value)
  @value = value
end

Instance Method Details

#factory(*args, &block) ⇒ Object



31
32
33
# File 'lib/surrogate/values.rb', line 31

def factory(*args, &block)
  Value.factory(*args, &block)
end

#value(method_name) ⇒ Object



27
28
29
# File 'lib/surrogate/values.rb', line 27

def value(method_name)
  @value
end