Method: Qonfig::Commands::Definition::AddOption#initialize

Defined in:
lib/qonfig/commands/definition/add_option.rb

#initialize(key, value) ⇒ AddOption

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AddOption.

Parameters:

  • key (Symbol, String)
  • value (Object)

Raises:

Since:

  • 0.1.0



29
30
31
32
33
34
# File 'lib/qonfig/commands/definition/add_option.rb', line 29

def initialize(key, value)
  Qonfig::Settings::KeyGuard.prevent_incomparabilities!(key)

  @key = key
  @value = value
end