Sha256: 00f471883c5742f572464b7b390332b63d1e2c0dc30072e5702ab9bf0b22dd06

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

module Yaoc
  class TransformationDeferredCommand < TransformationCommand

    def value(time_saved_to_convert)
      proc = ->{
        value_fetcher_proc.call(time_saved_to_convert, fetcher, from)
      }

      TransformationDeferredCommand.deferrer_strategy(proc)
    end

    def self.deferrer_strategy(proc)
      Yaoc::Helper::ToProcDelegator.new(proc)
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yaoc-0.0.13 lib/yaoc/transformation_deferred_command.rb
yaoc-0.0.12 lib/yaoc/transformation_deferred_command.rb
yaoc-0.0.11 lib/yaoc/transformation_deferred_command.rb
yaoc-0.0.10 lib/yaoc/transformation_deferred_command.rb
yaoc-0.0.9 lib/yaoc/transformation_deferred_command.rb