Sha256: 0a7beb19de72f5ebe63ba4e81eac05ab0dcafd412cbd61c9a11c30ed49c118d3

Contents?: true

Size: 782 Bytes

Versions: 2

Compression:

Stored size: 782 Bytes

Contents

require_relative "conglomerate/tree_serializer"
require_relative "conglomerate/array"
require_relative "conglomerate/particle"
require_relative "conglomerate/serializer"
require_relative "conglomerate/link"
require_relative "conglomerate/error"
require_relative "conglomerate/datum"
require_relative "conglomerate/template"
require_relative "conglomerate/item"
require_relative "conglomerate/query"
require_relative "conglomerate/collection"
require_relative "conglomerate/tree_deserializer"

module Conglomerate
  def self.serialize(serializable)
    Conglomerate::TreeSerializer.new(serializable).serialize
  end

  def self.serializer
    Module.new do
      def self.included(descendant)
        descendant.send(:include, ::Conglomerate::Serializer)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
conglomerate-0.8.1 lib/conglomerate.rb
conglomerate-0.8.0 lib/conglomerate.rb