Class: Representable::Serializer::Hash
- Inherits:
-
Representable::Serializer
- Object
- Deserializer
- Representable::Serializer
- Representable::Serializer::Hash
- Defined in:
- lib/representable/serializer.rb
Instance Method Summary collapse
Methods inherited from Representable::Serializer
Methods inherited from Deserializer
Constructor Details
This class inherits a constructor from Representable::Deserializer
Instance Method Details
#serialize(hash, *args) ⇒ Object
51 52 53 54 55 |
# File 'lib/representable/serializer.rb', line 51 def serialize(hash, *args) {}.tap do |hsh| hash.each { |key, obj| hsh[key] = super(obj, *args) } end end |