Sha256: e84beccf6bbc915d663e6c6e3ca2d26cdc22a85309457419d6326538824021fe

Contents?: true

Size: 693 Bytes

Versions: 15

Compression:

Stored size: 693 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanRecalculateResult
        module Concern
          include Support::Concern

          ##
          # NOTE: `CanRecalculateResult` plugin expects that `CanBeCopied` plugin is already included.
          # That is why `copy` method is available.
          #
          # NOTE: `CanRecalculateResult` plugin expects that `HasResult` plugin is already included.
          # That is why `result` method is available.
          #
          instance_methods do
            def recalculate_result
              copy.result
            end
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.11.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.10.1 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.10.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.9.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.8.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.7.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.6.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.5.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.4.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.3.1 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.3.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.2.1 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.2.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.1.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb