Class: Conan::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/conan/settings.rb

Instance Method Summary collapse

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