Module: Shared::IsData::Annotation::ClassMethods

Defined in:
app/models/concerns/shared/is_data/annotation.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) annotates?

true if model is an “annotator” (e.g. identifiers, tags, notes, data attributes, alternate values, citations), i.e. data that references another data element through STI

Returns:

  • (Boolean)


25
26
27
# File 'app/models/concerns/shared/is_data/annotation.rb', line 25

def annotates?
  respond_to?(:annotated_object)
end