Module: Leap::Whip::Registered
- Defined in:
- lib/leap/whip.rb
Overview
Give Procs the capacity to remember their result.
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Result storage.
Instance Method Summary collapse
-
#call ⇒ Object
Override Proc#call here to ensure storage.
Instance Attribute Details
#result ⇒ Object (readonly)
Result storage
56 57 58 |
# File 'lib/leap/whip.rb', line 56 def result @result end |
Instance Method Details
#call ⇒ Object
Override Proc#call here to ensure storage
59 60 61 |
# File 'lib/leap/whip.rb', line 59 def call @result = super end |