Class: Conan::Settings
- Inherits:
-
Object
- Object
- Conan::Settings
- Defined in:
- lib/conan/settings.rb
Instance Method Summary collapse
- #[](k) ⇒ Object
- #[]=(k, v) ⇒ Object
-
#initialize(settings = {}) ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize(settings = {}) ⇒ Settings
Returns a new instance of Settings.
5 6 7 |
# File 'lib/conan/settings.rb', line 5 def initialize(settings = {}) @settings = defaults.merge(settings) end |
Instance Method Details
#[](k) ⇒ Object
13 14 15 |
# File 'lib/conan/settings.rb', line 13 def [](k) @settings[k] end |
#[]=(k, v) ⇒ Object
9 10 11 |
# File 'lib/conan/settings.rb', line 9 def []=(k, v) @settings[k] = v end |