Sha256: 0ecda97fc106763eeb6bdb2e4fe0ffb5621fe73d3c5da26a8724edcf336eb0d8

Contents?: true

Size: 699 Bytes

Versions: 2

Compression:

Stored size: 699 Bytes

Contents

#
# 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
	  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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activefacts-compositions-1.9.1 lib/activefacts/compositions/binary.rb
activefacts-compositions-1.9.0 lib/activefacts/compositions/binary.rb