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.



377
378
379
# File 'lib/conan/manifest_builder.rb', line 377

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



375
376
377
# File 'lib/conan/manifest_builder.rb', line 375

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