Sha256: 6a3027fe8119bb8e32c96d25d717ae92f170a65f35d0cb8a392a1d6826d4fc24

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

module DispatchRider
  class Publisher
    module ConfigurationSupport
      def configuration
        @configuration ||= Configuration.new
      end
      alias config configuration

      def configure(configuration_hash = {})
        if block_given?
          yield configuration
        else
          configuration.parse(configuration_hash)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dispatch-rider-2.2.0 lib/dispatch-rider/publisher/configuration_support.rb