Method: Beaker::Options::Parser#update_option

Defined in:
lib/beaker/options/parser.rb

#update_option(key, value, source) ⇒ Object

 Update the @option hash with a value and the @attribution hash with a source

Parameters:

  • key (String)

    The key to update in both hashes

  • value (Object)

    The value to set in the @options hash

  • source (String)

    The source to set in the @attribution hash



194
195
196
197
# File 'lib/beaker/options/parser.rb', line 194

def update_option(key, value, source)
  @options[key] = value
  @attribution[key] = source
end