Class: Uniword::Lint::Engine
- Inherits:
-
Object
- Object
- Uniword::Lint::Engine
- Defined in:
- lib/uniword/lint/engine.rb
Overview
Walks the document with each rule and aggregates findings.
Instance Method Summary collapse
-
#initialize(document:, ruleset:) ⇒ Engine
constructor
A new instance of Engine.
- #run ⇒ Result
Constructor Details
#initialize(document:, ruleset:) ⇒ Engine
Returns a new instance of Engine.
9 10 11 12 |
# File 'lib/uniword/lint/engine.rb', line 9 def initialize(document:, ruleset:) @document = document @ruleset = wrap_ruleset(ruleset) end |