Module: Codecs::EnumCodec
- 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
178 179 180 |
# File 'lib/emery/codecs.rb', line 178 def self.applicable?(type) type.respond_to? :ancestors and type.ancestors.include? Enum end |