Class: Configurable::ConfigTypes::StringType
- Inherits:
-
ObjectType
- Object
- ObjectType
- Configurable::ConfigTypes::StringType
- Defined in:
- lib/configurable/config_types/string_type.rb
Instance Method Summary collapse
Methods inherited from ObjectType
cast, errors, inherited, #initialize, matches, matches?, subclass, uncast
Constructor Details
This class inherits a constructor from Configurable::ConfigTypes::ObjectType
Instance Method Details
#cast(input) ⇒ Object
6 7 8 |
# File 'lib/configurable/config_types/string_type.rb', line 6 def cast(input) String(input) end |
#uncast(value) ⇒ Object
10 11 12 |
# File 'lib/configurable/config_types/string_type.rb', line 10 def uncast(value) value.to_s end |