Class: Yaoc::TransformationDeferredCommand
- Inherits:
-
TransformationCommand
- Object
- TransformationCommand
- Yaoc::TransformationDeferredCommand
- Defined in:
- lib/yaoc/transformation_deferred_command.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from TransformationCommand
#call, create, default_source, deferred_source, fill_result_with_value, #initialize
Constructor Details
This class inherits a constructor from Yaoc::TransformationCommand
Class Method Details
.deferrer_strategy(proc) ⇒ Object
12 13 14 |
# File 'lib/yaoc/transformation_deferred_command.rb', line 12 def self.deferrer_strategy(proc) Yaoc::Helper::ToProcDelegator.new(proc) end |
Instance Method Details
#value(time_saved_to_convert) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/yaoc/transformation_deferred_command.rb', line 4 def value(time_saved_to_convert) proc = ->{ value_fetcher_proc.call(time_saved_to_convert, fetcher, from) } TransformationDeferredCommand.deferrer_strategy(proc) end |