Class: Uniword::Validation::Rules::ModelRule
- Defined in:
- lib/uniword/validation/rules/model_rule.rb
Overview
Base class for in-memory (model-level) validation rules.
Model rules run against a Rules::ModelContext — the pre-save front-end of the validation engine — and inspect the document model directly instead of parsing package XML.
Direct Known Subclasses
BookmarkPairingRule, BookmarkUniquenessRule, DocumentBodyRule, EmptyParagraphsRule, TableGridRule, TablePropertiesRule
Instance Method Summary collapse
-
#context_type ⇒ Symbol
Model rules consume the in-memory ModelContext.
Methods inherited from Base
#applicable?, #category, #check, #code, #description, #severity, #validity_rule
Instance Method Details
#context_type ⇒ Symbol
Model rules consume the in-memory ModelContext.
28 29 30 |
# File 'lib/uniword/validation/rules/model_rule.rb', line 28 def context_type :model end |