Sha256: beda7698c1d4b79b985cea1fab40f7227f7b79be2ef112cd557d84cedcba59f2

Contents?: true

Size: 822 Bytes

Versions: 2

Compression:

Stored size: 822 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/command"
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.10.0 lib/conglomerate.rb
conglomerate-0.9.0 lib/conglomerate.rb