Sha256: c87182df6ea2b15bc917ea8ae879675e4b9d67d9d7b8e80947ffe73b47c07bea

Contents?: true

Size: 438 Bytes

Versions: 29

Compression:

Stored size: 438 Bytes

Contents

module SuperStack
  module MergePolicies

    module InheritanceMergePolicy

      extend UniverseCompiler::Utils::DeepTraverse
      extend UniverseCompiler::Entity::Marshalling

      def self.merge(h1, h2)
        h1_dereferenced = dereferenced_fields h1
        h2_dereferenced = dereferenced_fields h2
        merged = h1_dereferenced.deep_merge! h2_dereferenced
        resolve_fields_references merged
      end

    end

  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
universe_compiler-0.5.6 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.5.5 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.5.4 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.5.3 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.5.2 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.5.1 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.4.3 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.4.2 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.4.1 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.4.0 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.3.12 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.3.11 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.3.10 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.3.9 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.3.8 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.3.7 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.3.6 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.3.5 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.3.4 lib/universe_compiler/entity/inheritance_merge_policy.rb
universe_compiler-0.3.3 lib/universe_compiler/entity/inheritance_merge_policy.rb