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