Sha256: b4331fddb8bd0df3af923daed38ad0d3fbb8cfd31d82a6a91ebc7de9b6993f33

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

require 'complex_config'

def complex_config_with_env(name = nil, env = ComplexConfig::Provider.env)
  if name
    ComplexConfig::Provider[name][env.to_s]
  else
    ComplexConfig::Provider.proxy(env.to_s)
  end
end
alias cc complex_config_with_env

def complex_config(name = nil)
  if name
    ComplexConfig::Provider[name]
  else
    ComplexConfig::Provider.proxy
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
complex_config-0.8.0 lib/complex_config/shortcuts.rb
complex_config-0.7.0 lib/complex_config/shortcuts.rb
complex_config-0.6.0 lib/complex_config/shortcuts.rb
complex_config-0.5.2 lib/complex_config/shortcuts.rb
complex_config-0.5.0 lib/complex_config/shortcuts.rb
complex_config-0.4.0 lib/complex_config/shortcuts.rb