Class: Contrast::Config::DefaultValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#valueObject (readonly)

Returns the value of attribute value.



10
11
12
# File 'lib/contrast/config/default_value.rb', line 10

def value
  @value
end