Module: Canon::Comparison::Dimensions
- Defined in:
- lib/canon/comparison/dimensions.rb,
lib/canon/comparison/dimensions/registry.rb,
lib/canon/comparison/dimensions/dimension.rb,
lib/canon/comparison/dimensions/dimension_set.rb
Overview
Dimension value objects for comparison aspects.
Each format (XML/HTML, JSON, YAML) has a distinct set of dimensions —specific aspects of a document that can be compared with different behaviors (:strict, :normalize, :ignore).
A Dimension knows its metadata (name, valid behaviors, normative classification rule). Comparison logic stays in the comparators where it has full node context.
DimensionSet groups dimensions per format. Registry provides pre-built sets with format lookup (html/html4/html5 all resolve to the XML set).
Defined Under Namespace
Modules: Registry Classes: Dimension, DimensionSet