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.22.2 lib/complex_config/provider/shortcuts.rb
complex_config-0.22.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.22.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.21.2 lib/complex_config/provider/shortcuts.rb
complex_config-0.21.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.21.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.20.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.19.4 lib/complex_config/provider/shortcuts.rb
complex_config-0.19.3 lib/complex_config/provider/shortcuts.rb
complex_config-0.19.2 lib/complex_config/provider/shortcuts.rb
complex_config-0.19.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.19.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.18.2 lib/complex_config/provider/shortcuts.rb
complex_config-0.18.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.18.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.17.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.17.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.16.0 lib/complex_config/provider/shortcuts.rb
complex_config-0.15.1 lib/complex_config/provider/shortcuts.rb
complex_config-0.15.0 lib/complex_config/provider/shortcuts.rb