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
11 12 13 |
# File 'lib/yaoc/transformation_deferred_command.rb', line 11 def self.deferrer_strategy(proc) Yaoc::Helper::ToProcDelegator.new(proc) end |
Instance Method Details
#value(time_saved_to_convert) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/yaoc/transformation_deferred_command.rb', line 3 def value(time_saved_to_convert) proc = ->do value_fetcher_proc.call(time_saved_to_convert, fetcher, from) end TransformationDeferredCommand.deferrer_strategy(proc) end |