Class: Markdown::Merge::ConflictResolver
- Inherits:
-
Ast::Merge::ConflictResolverBase
- Object
- Ast::Merge::ConflictResolverBase
- Markdown::Merge::ConflictResolver
- Defined in:
- lib/markdown/merge/conflict_resolver.rb
Overview
Resolves conflicts between matching Markdown elements from template and destination.
When two elements have the same signature but different content, the resolver
determines which version to use based on the configured preference.
Inherits from Ast::Merge::ConflictResolverBase using the :node strategy,
which resolves conflicts on a per-node-pair basis.
Instance Method Summary collapse
-
#initialize(preference:, template_analysis:, dest_analysis:, **options) ⇒ ConflictResolver
constructor
Initialize a conflict resolver.
Constructor Details
#initialize(preference:, template_analysis:, dest_analysis:, **options) ⇒ ConflictResolver
Initialize a conflict resolver
36 37 38 39 40 41 42 43 44 |
# File 'lib/markdown/merge/conflict_resolver.rb', line 36 def initialize(preference:, template_analysis:, dest_analysis:, **) super( strategy: :node, preference: preference, template_analysis: template_analysis, dest_analysis: dest_analysis, ** ) end |