Class: Settingify::Caster
- Inherits:
-
Struct
- Object
- Struct
- Settingify::Caster
- Defined in:
- lib/settingify/caster.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type
4 5 6 |
# File 'lib/settingify/caster.rb', line 4 def type @type end |
#value ⇒ Object
Returns the value of attribute value
4 5 6 |
# File 'lib/settingify/caster.rb', line 4 def value @value end |
Instance Method Details
#call ⇒ Object
7 8 9 |
# File 'lib/settingify/caster.rb', line 7 def call type_class.try_convert value end |