Class: Qonfig::Commands::Definition::AddOption Private
- Defined in:
- lib/qonfig/commands/definition/add_option.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #key ⇒ Symbol, String readonly private
- #value ⇒ Object readonly private
Instance Method Summary collapse
- #call(data_set, settings) ⇒ void private
-
#initialize(key, value) ⇒ AddOption
constructor
private
A new instance of AddOption.
Constructor Details
#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.
26 27 28 29 30 31 |
# File 'lib/qonfig/commands/definition/add_option.rb', line 26 def initialize(key, value) Qonfig::Settings::KeyGuard.prevent_incomparabilities!(key) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Symbol, String (readonly)
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.
10 11 12 |
# File 'lib/qonfig/commands/definition/add_option.rb', line 10 def key @key end |
#value ⇒ Object (readonly)
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.
16 17 18 |
# File 'lib/qonfig/commands/definition/add_option.rb', line 16 def value @value end |
Instance Method Details
#call(data_set, settings) ⇒ void
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.
This method returns an undefined value.
39 40 41 |
# File 'lib/qonfig/commands/definition/add_option.rb', line 39 def call(data_set, settings) settings.__define_setting__(key, value) end |