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.
410 411 412 |
# File 'lib/conan/manifest_builder.rb', line 410 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
408 409 410 |
# File 'lib/conan/manifest_builder.rb', line 408 def @options end |
Instance Method Details
#option(key, value) ⇒ Object
414 415 416 417 418 419 420 |
# File 'lib/conan/manifest_builder.rb', line 414 def option(key, value) if @options[key].nil? @options[key] = [value] else @options[key] << value end end |