Sha256: 997d5cc49736e2337eba9bf99b09e99538d9f2bcee828c72ea6acdb65e4da899

Contents?: true

Size: 308 Bytes

Versions: 26

Compression:

Stored size: 308 Bytes

Contents

module UltraConfig
  class Settings
    def self.default
      {
        type_safety: :weak
      }
    end

    def self.settings
      @settings ||= default
    end

    def self.set(setting, value)
      settings[setting] = value
    end

    def self.method_missing(m)
      settings[m]
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ultra_config-0.15.4 lib/ultra_config/settings.rb
ultra_config-0.15.3 lib/ultra_config/settings.rb
ultra_config-0.15.2 lib/ultra_config/settings.rb
ultra_config-0.15.1 lib/ultra_config/settings.rb
ultra_config-0.15.0 lib/ultra_config/settings.rb
ultra_config-0.14.0 lib/ultra_config/settings.rb
ultra_config-0.13.0 lib/ultra_config/settings.rb
ultra_config-0.12.0 lib/ultra_config/settings.rb
ultra_config-0.11.2 lib/ultra_config/settings.rb
ultra_config-0.11.1 lib/ultra_config/settings.rb
ultra_config-0.11.0 lib/ultra_config/settings.rb
ultra_config-0.10.3 lib/ultra_config/settings.rb
ultra_config-0.10.2 lib/ultra_config/settings.rb
ultra_config-0.10.1 lib/ultra_config/settings.rb
ultra_config-0.10.0 lib/ultra_config/settings.rb
ultra_config-0.9.1 lib/ultra_config/settings.rb
ultra_config-0.9.0 lib/ultra_config/settings.rb
ultra_config-0.8.0 lib/ultra_config/settings.rb
ultra_config-0.7.0 lib/ultra_config/settings.rb
ultra_config-0.6.1 lib/ultra_config/settings.rb