Class: SettingsCabinet::Base
- Inherits:
-
Object
- Object
- SettingsCabinet::Base
- Defined in:
- lib/settings_cabinet/base.rb
Defined Under Namespace
Modules: SettingsLoader
Class Method Summary collapse
- .[] ⇒ Object
- .dig ⇒ Object
- .fetch ⇒ Object
- .fetch_values ⇒ Object
- .to_h ⇒ Object
- .values_at ⇒ Object
Instance Method Summary collapse
- #[] ⇒ Object
- #dig ⇒ Object
- #fetch ⇒ Object
- #fetch_values ⇒ Object
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
- #to_h ⇒ Object
- #values_at ⇒ Object
Constructor Details
Class Method Details
.[] ⇒ Object
119 120 121 |
# File 'lib/settings_cabinet/base.rb', line 119 def self.[](...) instance.[](...) end |
.dig ⇒ Object
123 124 125 |
# File 'lib/settings_cabinet/base.rb', line 123 def self.dig(...) instance.dig(...) # rubocop:todo Style/SingleArgumentDig false positive: https://github.com/rubocop/rubocop/issues/10574 end |
.fetch ⇒ Object
127 128 129 |
# File 'lib/settings_cabinet/base.rb', line 127 def self.fetch(...) instance.fetch(...) end |
.fetch_values ⇒ Object
131 132 133 |
# File 'lib/settings_cabinet/base.rb', line 131 def self.fetch_values(...) instance.fetch_values(...) end |
.to_h ⇒ Object
139 140 141 |
# File 'lib/settings_cabinet/base.rb', line 139 def self.to_h(...) instance.to_h(...) end |
.values_at ⇒ Object
135 136 137 |
# File 'lib/settings_cabinet/base.rb', line 135 def self.values_at(...) instance.values_at(...) end |
Instance Method Details
#[] ⇒ Object
95 96 97 |
# File 'lib/settings_cabinet/base.rb', line 95 def [](...) @settings.[](...) # rubocop:todo Layout/SpaceBeforeBrackets false positive: https://github.com/rubocop/rubocop/issues/10573 end |
#dig ⇒ Object
99 100 101 |
# File 'lib/settings_cabinet/base.rb', line 99 def dig(...) @settings.dig(...) # rubocop:todo Style/SingleArgumentDig false positive: https://github.com/rubocop/rubocop/issues/10574 end |
#fetch ⇒ Object
103 104 105 |
# File 'lib/settings_cabinet/base.rb', line 103 def fetch(...) @settings.fetch(...) end |
#fetch_values ⇒ Object
107 108 109 |
# File 'lib/settings_cabinet/base.rb', line 107 def fetch_values(...) @settings.fetch_values(...) end |
#to_h ⇒ Object
115 116 117 |
# File 'lib/settings_cabinet/base.rb', line 115 def to_h(...) @settings.to_h(...) end |
#values_at ⇒ Object
111 112 113 |
# File 'lib/settings_cabinet/base.rb', line 111 def values_at(...) @settings.values_at(...) end |