method

to_s

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Annotation
to_s(options = {}) public

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.

Show source
Register or log in to add new notes.