Module: Attributor::Dumpable

Included in:
Collection, Hash
Defined in:
lib/attributor/dumpable.rb

Instance Method Summary collapse

Instance Method Details

#dumpObject

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

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/attributor/dumpable.rb', line 6

def dump
  raise NotImplementedError, 'Dumpable requires the implementation of #dump'
end