Sha256: f5959e72a7c78a4de390d410304f5343dd77612a38990a5f20253f121cfaaa35

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

module Attributor
  module Dumpable
    # 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
    def dump
      raise NotImplementedError, 'Dumpable requires the implementation of #dump'
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attributor-5.0.2 lib/attributor/dumpable.rb