class Canon::Diff::DiffClassifier
def initialize(match_options)
-
match_options(Canon::Comparison::ResolvedMatchOptions) -- The match options
def initialize(match_options) @match_options = match_options # Use the compare_profile from ResolvedMatchOptions if available (e.g., HtmlCompareProfile) # Otherwise create a base CompareProfile @profile = if match_options.is_a?(Canon::Comparison::ResolvedMatchOptions) && match_options.compare_profile match_options.compare_profile else Canon::Comparison::CompareProfile.new(match_options) end end