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

BlockValue, Raisable, ValueQueue

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ BaseValue

Returns a new instance of BaseValue.



25
26
27
# File 'lib/surrogate/values.rb', line 25

def initialize(value)
  @value = value
end

Instance Method Details

#factory(*args, &block) ⇒ Object



33
34
35
# File 'lib/surrogate/values.rb', line 33

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

#value(method_name) ⇒ Object



29
30
31
# File 'lib/surrogate/values.rb', line 29

def value(method_name)
  @value
end