Module: Canon::Comparison::MatchOptions::Yaml
- Defined in:
- lib/canon/comparison/match_options.rb
Overview
YAML-specific matching options
Constant Summary collapse
- MATCH_DIMENSIONS =
Matching dimensions for YAML (collectively exhaustive)
%i[ text_content structural_whitespace key_order comments ].freeze
- FORMAT_DEFAULTS =
Expose FORMAT_DEFAULTS from YamlResolver (for backward compatibility)
MatchOptions::YamlResolver.const_get(:FORMAT_DEFAULTS)
- MATCH_PROFILES =
Expose MATCH_PROFILES from YamlResolver (for backward compatibility)
MatchOptions::YamlResolver.const_get(:MATCH_PROFILES)
Class Method Summary collapse
-
.format_defaults(format) ⇒ Hash
Get format-specific default options.
-
.get_profile_options(profile) ⇒ Object
Delegate to YamlResolver.
-
.match_dimensions ⇒ Array<Symbol>
Get valid match dimensions for YAML.
-
.resolve(**kwargs) ⇒ Object
Delegate to YamlResolver.
Class Method Details
.format_defaults(format) ⇒ Hash
Get format-specific default options
276 277 278 |
# File 'lib/canon/comparison/match_options.rb', line 276 def format_defaults(format) MatchOptions::YamlResolver.format_defaults(format) end |
.get_profile_options(profile) ⇒ Object
Delegate to YamlResolver
261 262 263 |
# File 'lib/canon/comparison/match_options.rb', line 261 def (profile) MatchOptions::YamlResolver.(profile) end |
.match_dimensions ⇒ Array<Symbol>
Get valid match dimensions for YAML
268 269 270 |
# File 'lib/canon/comparison/match_options.rb', line 268 def match_dimensions MatchOptions::YamlResolver.match_dimensions end |
.resolve(**kwargs) ⇒ Object
Delegate to YamlResolver
256 257 258 |
# File 'lib/canon/comparison/match_options.rb', line 256 def resolve(**kwargs) MatchOptions::YamlResolver.resolve(**kwargs) end |