Sha256: 8bfeafd7659e0ed233e726da3545e4c31599855dab5a97c91132d3554dc6d87c

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

require_relative 'configuration'

module SimpleCommand
  module Dispatcher
    class << self
      attr_writer :configuration
      end

    # Returns the application configuration object.
    #
    # @return [Configuration] the application Configuration object.
    def self.configuration
      @configuration ||= Configuration.new
    end

    def self.configure
      yield(configuration)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_command_dispatcher-1.2.6 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-1.2.5 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-1.2.4 lib/simple_command_dispatcher/configure.rb