module Moka::Configuration

Public Instance Methods

config() click to toggle source
# File lib/moka/configuration.rb, line 14
def config
  @config if @config
end
configure(options = { env: ENV['RACK_ENV'] }) { |config| ... } click to toggle source
# File lib/moka/configuration.rb, line 6
def configure(options = { env: ENV['RACK_ENV'] })
  @config = Moka::Dealer.new
  @config.env = options[:env] ? options[:env].to_s : 'production'
  Moka::Request::set_env
  yield @config if block_given?
  @config.get_check_key
end