Sha256: db6db18bf71fba9e28f18c8220f60e15ca3ab4eb28fb7ce2c5594c15af9269c7

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

module DispatchRider
  class Publisher
    module ConfigurationSupport
      def configuration
        @configuration ||= Configuration.new
      end
      alias_method :config, :configuration

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dispatch-rider-2.1.0 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-2.0.0 lib/dispatch-rider/publisher/configuration_support.rb