Class: HasOptions

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

Direct Known Subclasses

Deployment

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  @options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



408
409
410
# File 'lib/conan/manifest_builder.rb', line 408

def options
  @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