Class: Tainbox::DeferredValue
Instance Attribute Summary collapse
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
Instance Method Summary collapse
-
#initialize(proc) ⇒ DeferredValue
constructor
A new instance of DeferredValue.
Constructor Details
#initialize(proc) ⇒ DeferredValue
Returns a new instance of DeferredValue.
5 6 7 |
# File 'lib/tainbox/deferred_value.rb', line 5 def initialize(proc) @proc = proc end |
Instance Attribute Details
#proc ⇒ Object (readonly)
Returns the value of attribute proc.
3 4 5 |
# File 'lib/tainbox/deferred_value.rb', line 3 def proc @proc end |