Module: Canon::Comparison::MatchOptions::Xml
- Defined in:
- lib/canon/comparison/match_options.rb
Overview
XML/HTML-specific matching options
Constant Summary collapse
- MATCH_DIMENSIONS =
Matching dimensions for XML/HTML (collectively exhaustive)
%i[ text_content structural_whitespace attribute_presence attribute_order attribute_values element_position comments ].freeze
- FORMAT_DEFAULTS =
Expose FORMAT_DEFAULTS from XmlResolver (for backward compatibility)
MatchOptions::XmlResolver.const_get(:FORMAT_DEFAULTS)
- MATCH_PROFILES =
Expose MATCH_PROFILES from XmlResolver (for backward compatibility)
MatchOptions::XmlResolver.const_get(:MATCH_PROFILES)
Class Method Summary collapse
-
.format_defaults(format) ⇒ Hash
Get format-specific default options.
-
.get_profile_options(profile) ⇒ Object
Delegate to XmlResolver.
-
.match_dimensions ⇒ Array<Symbol>
Get valid match dimensions for XML/HTML.
-
.resolve(**kwargs) ⇒ Object
Delegate to XmlResolver.
Class Method Details
.format_defaults(format) ⇒ Hash
Get format-specific default options
165 166 167 |
# File 'lib/canon/comparison/match_options.rb', line 165 def format_defaults(format) MatchOptions::XmlResolver.format_defaults(format) end |
.get_profile_options(profile) ⇒ Object
Delegate to XmlResolver
150 151 152 |
# File 'lib/canon/comparison/match_options.rb', line 150 def (profile) MatchOptions::XmlResolver.(profile) end |
.match_dimensions ⇒ Array<Symbol>
Get valid match dimensions for XML/HTML
157 158 159 |
# File 'lib/canon/comparison/match_options.rb', line 157 def match_dimensions MatchOptions::XmlResolver.match_dimensions end |
.resolve(**kwargs) ⇒ Object
Delegate to XmlResolver
145 146 147 |
# File 'lib/canon/comparison/match_options.rb', line 145 def resolve(**kwargs) MatchOptions::XmlResolver.resolve(**kwargs) end |