Sha256: c3092990f0260e8a31aba2e96a5190aca8fa29e16a35fa283921494856ae330b

Contents?: true

Size: 439 Bytes

Versions: 9

Compression:

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

9 entries across 9 versions & 1 rubygems

Version Path
simple_command_dispatcher-3.0.4 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-3.0.3 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-3.0.2 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-3.0.1 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-3.0.0 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-2.0.1 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-2.0.0 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-1.2.8 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-1.2.7 lib/simple_command_dispatcher/configure.rb