Class: Psych::Merge::ConflictResolver
- Inherits:
-
Ast::Merge::ConflictResolverBase
- Object
- Ast::Merge::ConflictResolverBase
- Psych::Merge::ConflictResolver
- Defined in:
- lib/psych/merge/conflict_resolver.rb
Overview
Resolves conflicts between template and destination YAML content
using structural signatures and configurable preferences.
Inherits from Ast::Merge::ConflictResolverBase using the :batch strategy,
which resolves all conflicts at once using signature maps.
Instance Method Summary collapse
-
#initialize(template_analysis, dest_analysis, preference: :destination, add_template_only_nodes: false, remove_template_missing_nodes: false, recursive: true, match_refiner: nil, node_typing: nil, **options) ⇒ ConflictResolver
constructor
Creates a new ConflictResolver.
Constructor Details
#initialize(template_analysis, dest_analysis, preference: :destination, add_template_only_nodes: false, remove_template_missing_nodes: false, recursive: true, match_refiner: nil, node_typing: nil, **options) ⇒ ConflictResolver
Creates a new ConflictResolver
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/psych/merge/conflict_resolver.rb', line 43 def initialize(template_analysis, dest_analysis, preference: :destination, add_template_only_nodes: false, remove_template_missing_nodes: false, recursive: true, match_refiner: nil, node_typing: nil, **) super( strategy: :batch, preference: preference, template_analysis: template_analysis, dest_analysis: dest_analysis, add_template_only_nodes: add_template_only_nodes, remove_template_missing_nodes: remove_template_missing_nodes, recursive: recursive, match_refiner: match_refiner, ** ) @node_typing = node_typing @emitter = Emitter.new end |