Module: Attributor::Dumpable
- Included in:
- Collection, Hash
- Defined in:
- lib/attributor/dumpable.rb
Instance Method Summary collapse
-
#dump ⇒ Object
Interface denoting that instances of such type respond to .dump as a way to properly serialize its contents into primitive ruby objects.
Instance Method Details
#dump ⇒ Object
Interface denoting that instances of such type respond to .dump as a way to properly serialize its contents into primitive ruby objects. This typically corresponds to non-trivial types that have some sort of substructure
6 7 8 |
# File 'lib/attributor/dumpable.rb', line 6 def dump raise NotImplementedError, 'Dumpable requires the implementation of #dump' end |