Class: Seafoam::Annotator
- Inherits:
-
Object
- Object
- Seafoam::Annotator
- Defined in:
- lib/seafoam/annotators.rb
Overview
The base class for all annotators. You must subclass this to be recognized as an annotator.
Direct Known Subclasses
Seafoam::Annotators::FallbackAnnotator, Seafoam::Annotators::GraalAnnotator
Constant Summary collapse
- SUBCLASSES =
[]
Class Method Summary collapse
Instance Method Summary collapse
- #annotate(_graph) ⇒ Object
- #applies?(_graph) ⇒ Boolean
-
#initialize(options = {}) ⇒ Annotator
constructor
A new instance of Annotator.
Constructor Details
#initialize(options = {}) ⇒ Annotator
Returns a new instance of Annotator.
38 39 40 |
# File 'lib/seafoam/annotators.rb', line 38 def initialize( = {}) = end |
Class Method Details
.inherited(annotator) ⇒ Object
50 51 52 |
# File 'lib/seafoam/annotators.rb', line 50 def self.inherited(annotator) SUBCLASSES.push annotator end |
Instance Method Details
#annotate(_graph) ⇒ Object
46 47 48 |
# File 'lib/seafoam/annotators.rb', line 46 def annotate(_graph) raise NotImplementedError end |
#applies?(_graph) ⇒ Boolean
42 43 44 |
# File 'lib/seafoam/annotators.rb', line 42 def applies?(_graph) raise NotImplementedError end |