SourceAnnotationExtractor::Annotation


Files

Parent

Struct.new(:line, :tag, :text)

Methods

Public Instance methods

to_s (options={})

Returns a representation of the annotation that looks like this:

  [126] [TODO] This algorithm is simple and clearly correct, make it faster.

If options has a flag :tag the tag is shown as in the example above. Otherwise the string contains just line and text.