Method: Datadog::Core::Configuration::Option#initialize
- Defined in:
- lib/datadog/core/configuration/option.rb
#initialize(definition, context) ⇒ Option
Returns a new instance of Option.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/datadog/core/configuration/option.rb', line 57 def initialize(definition, context) @definition = definition @context = context @value = nil @is_set = false @resolved_env = nil # One value is stored per precedence, to allow unsetting a higher # precedence value and falling back to a lower precedence one. @value_per_precedence = Hash.new(UNSET) # Lowest precedence, to allow for `#set` to always succeed for a brand new `Option` instance. @precedence_set = Precedence::DEFAULT end |