Class: Fontisan::Audit::Extractors::Base
- Inherits:
-
Object
- Object
- Fontisan::Audit::Extractors::Base
- Defined in:
- lib/fontisan/audit/extractors/base.rb
Overview
Abstract extractor interface. Subclasses implement #extract.
An extractor reads from a Context and returns a hash of fields
suitable for Models::Audit::AuditReport.new(**fields).
Returning an empty hash is valid (no-op).
Direct Known Subclasses
Aggregations, ColorCapabilities, Coverage, Hinting, Identity, LanguageCoverage, Licensing, Metrics, OpenTypeLayout, Provenance, Style, VariationDetail
Instance Method Summary collapse
Instance Method Details
#extract(context) ⇒ Object
12 13 14 15 |
# File 'lib/fontisan/audit/extractors/base.rb', line 12 def extract(context) raise NotImplementedError, "#{self.class} must implement #extract" end |