Sha256: b5bc405a03409ff6a76dc5b62f9d6a0b67f179aecb5accfda0a616b5583bb000

Contents?: true

Size: 398 Bytes

Versions: 55

Compression:

Stored size: 398 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

55 entries across 55 versions & 1 rubygems

Version Path
dispatch-rider-1.1.6 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-1.1.5 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-1.1.4 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-1.0.3 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-1.0.2 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-1.0.1 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-1.0.0 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-0.2.7 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-0.2.6 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-0.2.5 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-0.2.4 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-0.2.3 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-0.2.2 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-0.2.1 lib/dispatch-rider/publisher/configuration_support.rb
dispatch-rider-0.2.0 lib/dispatch-rider/publisher/configuration_support.rb