Sha256: 72d4cddb31b8dbdeece7692fe08aa9b06ba05aa4a27c2495294aa36a3252b1c9

Contents?: true

Size: 698 Bytes

Versions: 8

Compression:

Stored size: 698 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 `HasJSendResult` 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

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.16.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb
convenient_service-0.13.0 lib/convenient_service/service/plugins/can_recalculate_result/concern.rb