Sha256: 1f884afe2f428cdee2f326416a12710e7267097f00444ae4657807d16d2fa87c

Contents?: true

Size: 822 Bytes

Versions: 1

Compression:

Stored size: 822 Bytes

Contents

### Composition
# ActiveFacts Compositions, Binary Compositor.
#
#	Fans of RDF will like this one.
#
# Copyright (c) 2015 Clifford Heath. Read the LICENSE file.
#
require "activefacts/compositions"

module ActiveFacts
  module Compositions
    class Binary < Compositor
      def generate
	super

	trace :binary!, "Constructing Binary Composition" do
	  @binary_mappings.keys.sort_by(&:name).each do |object_type|
	    mapping = @binary_mappings[object_type]
	    mapping.re_rank
	    composite = @constellation.Composite(mapping, composition: @composition)
	  end
	end

	trace :binary!, "Full binary composition" do
	  @binary_mappings.keys.sort_by(&:name).each do |object_type|
	    mapping = @binary_mappings[object_type]
	    mapping.show_trace 
	  end
	end

      end
    end
    publish_compositor(Binary)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activefacts-compositions-1.9.6 lib/activefacts/compositions/binary.rb