Class: S2D::Configuration::OptionalAttribute
- Defined in:
- lib/s2d/configuration/attribute.rb
Instance Attribute Summary collapse
-
#default_value ⇒ Object
readonly
Returns the value of attribute default_value.
Attributes inherited from Attribute
Instance Method Summary collapse
-
#initialize(key, description, default_value) ⇒ OptionalAttribute
constructor
A new instance of OptionalAttribute.
Constructor Details
#initialize(key, description, default_value) ⇒ OptionalAttribute
Returns a new instance of OptionalAttribute.
26 27 28 29 |
# File 'lib/s2d/configuration/attribute.rb', line 26 def initialize(key, description, default_value) super(false, key, description) @default_value = default_value end |
Instance Attribute Details
#default_value ⇒ Object (readonly)
Returns the value of attribute default_value.
24 25 26 |
# File 'lib/s2d/configuration/attribute.rb', line 24 def default_value @default_value end |