Class: Contrast::Config::DefaultValue
- Defined in:
- lib/contrast/config/default_value.rb
Overview
This is the wrapper for the default values in the configurations, used to differentiate between nil or false defaults and things being set explicitly to false.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ DefaultValue
constructor
A new instance of DefaultValue.
Constructor Details
#initialize(value) ⇒ DefaultValue
Returns a new instance of DefaultValue.
12 13 14 |
# File 'lib/contrast/config/default_value.rb', line 12 def initialize value @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
10 11 12 |
# File 'lib/contrast/config/default_value.rb', line 10 def value @value end |