Class: IknowParams::Serializer::String

Inherits:
IknowParams::Serializer show all
Defined in:
lib/iknow_params/serializer.rb

Direct Known Subclasses

UUID

Instance Attribute Summary

Attributes inherited from IknowParams::Serializer

#clazz

Instance Method Summary collapse

Methods inherited from IknowParams::Serializer

#dump, for, for!, json_value?, #matches_type!, #matches_type?, singleton

Constructor Details

#initializeString

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