Class: DDMemoize::Value
- Inherits:
-
Object
- Object
- DDMemoize::Value
- Defined in:
- lib/ddmemoize.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Value
constructor
A new instance of Value.
Constructor Details
#initialize(value) ⇒ Value
Returns a new instance of Value.
13 14 15 |
# File 'lib/ddmemoize.rb', line 13 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
11 12 13 |
# File 'lib/ddmemoize.rb', line 11 def value @value end |