Class: IknowParams::Serializer::String
- Inherits:
-
IknowParams::Serializer
- Object
- IknowParams::Serializer
- IknowParams::Serializer::String
- Defined in:
- lib/iknow_params/serializer.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from IknowParams::Serializer
Instance Method Summary collapse
-
#initialize ⇒ String
constructor
A new instance of String.
- #load(str) ⇒ Object
Methods inherited from IknowParams::Serializer
#dump, for, for!, json_value?, #matches_type!, #matches_type?, singleton
Constructor Details
#initialize ⇒ String
Returns a new instance of String.
91 92 93 |
# File 'lib/iknow_params/serializer.rb', line 91 def initialize super(::String) end |
Instance Method Details
#load(str) ⇒ Object
95 96 97 98 |
# File 'lib/iknow_params/serializer.rb', line 95 def load(str) matches_type!(str, err: LoadError) str end |