Sha256: fbb506f3ba8fdab3015dc83931f5d2176dc9947e5887a1825d942f187d87eafc

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
simple_command_dispatcher-1.2.2 lib/simple_command_dispatcher/configure.rb
simple_command_dispatcher-1.2.1 lib/simple_command_dispatcher/configure.rb