Sha256: 1dadf41e5a7f8fa7f79273bc4227a88d6f891fda52b7ca15731074f54da38e9d

Contents?: true

Size: 733 Bytes

Versions: 15

Compression:

Stored size: 733 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Common
    module Plugins
      module CanBeCopied
        module Concern
          include Support::Concern

          ##
          # NOTE: `CanBeCopied` plugin expects that `CachesConstructorParams` plugin is already used.
          # That is why `constructor_params` method is available.
          #
          instance_methods do
            include Support::Copyable

            def to_args
              constructor_params.args
            end

            def to_kwargs
              constructor_params.kwargs
            end

            def to_block
              constructor_params.block
            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/common/plugins/can_be_copied/concern.rb
convenient_service-0.11.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.10.1 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.10.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.9.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.8.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.7.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.6.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.5.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.4.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.3.1 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.3.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.2.1 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.2.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb
convenient_service-0.1.0 lib/convenient_service/common/plugins/can_be_copied/concern.rb