Sha256: 49b9e0c0ce81681dc0ee8080bb977a8fa0900deb30cc58eb5bf2eb1bcbd858e8

Contents?: true

Size: 470 Bytes

Versions: 36

Compression:

Stored size: 470 Bytes

Contents

class ComplexConfig::Provider
  module Shortcuts
    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
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
complex_config-0.14.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.14.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.13.3 lib/complex_config/provider/shortcuts.rb
complex_config-0.13.2 lib/complex_config/provider/shortcuts.rb
complex_config-0.13.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.13.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.12.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.12.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.11.3 lib/complex_config/provider/shortcuts.rb
complex_config-0.11.2 lib/complex_config/provider/shortcuts.rb
complex_config-0.11.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.11.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.10.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.9.2 lib/complex_config/provider/shortcuts.rb
complex_config-0.9.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.9.0 lib/complex_config/provider/shortcuts.rb