Module: Codecs::StringFormattedCodec
- Defined in:
- lib/emery/codecs.rb
Class Method Summary collapse
- .applicable?(type) ⇒ Boolean
- .deserialize(type, json_value) ⇒ Object
- .serialize(type, value) ⇒ Object
Class Method Details
.applicable?(type) ⇒ Boolean
117 118 119 |
# File 'lib/emery/codecs.rb', line 117 def self.applicable?(type) type.instance_of? T::StringFormattedType end |
.deserialize(type, json_value) ⇒ Object
120 121 122 |
# File 'lib/emery/codecs.rb', line 120 def self.deserialize(type, json_value) T.check(type, json_value) end |
.serialize(type, value) ⇒ Object
123 124 125 |
# File 'lib/emery/codecs.rb', line 123 def self.serialize(type, value) T.check(type, value) end |