Sha256: c3959dc8587dc9e84b1e11c9a66a83f608143f70bdc8582a3ee5c51fd25ac5e0

Contents?: true

Size: 616 Bytes

Versions: 3

Compression:

Stored size: 616 Bytes

Contents

# frozen_string_literal: true

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

          class_methods do
            ##
            # @api public
            #
            # @param type [Symbol]
            # @param block [Proc]
            # @return [ConvenientService::Common::Plugins::HasCallbacks::Entities::Callback]
            #
            def around(type, &block)
              callbacks.create(types: [:around, type], block: block)
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/common/plugins/has_around_callbacks/concern.rb
convenient_service-0.19.0 lib/convenient_service/common/plugins/has_around_callbacks/concern.rb
convenient_service-0.18.0 lib/convenient_service/common/plugins/has_around_callbacks/concern.rb