Class: HasOptions
- Inherits:
-
Object
- Object
- HasOptions
- Defined in:
- lib/conan/manifest_builder.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ HasOptions
constructor
A new instance of HasOptions.
- #option(key, value) ⇒ Object
Constructor Details
#initialize(options) ⇒ HasOptions
Returns a new instance of HasOptions.
377 378 379 |
# File 'lib/conan/manifest_builder.rb', line 377 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
375 376 377 |
# File 'lib/conan/manifest_builder.rb', line 375 def @options end |
Instance Method Details
#option(key, value) ⇒ Object
381 382 383 384 385 386 387 |
# File 'lib/conan/manifest_builder.rb', line 381 def option(key, value) if @options[key].nil? @options[key] = [value] else @options[key] << value end end |