class Seafoam::Annotator

The base class for all annotators. You must subclass this to be recognized as an annotator.

Constants

SUBCLASSES

Public Class Methods

inherited(annotator) click to toggle source
# File lib/seafoam/annotators.rb, line 50
def self.inherited(annotator)
  SUBCLASSES.push annotator
end
new(options = {}) click to toggle source
# File lib/seafoam/annotators.rb, line 38
def initialize(options = {})
  @options = options
end

Public Instance Methods

annotate(_graph) click to toggle source
# File lib/seafoam/annotators.rb, line 46
def annotate(_graph)
  raise NotImplementedError
end
applies?(_graph) click to toggle source
# File lib/seafoam/annotators.rb, line 42
def applies?(_graph)
  raise NotImplementedError
end