class TodoAgent::Comment
Attributes
filename[R]
line[R]
Public Class Methods
new(match, filename, line)
click to toggle source
# File lib/todo_agent/comment.rb, line 7 def initialize(match, filename, line) @filename = filename @match = match @line = line end
Public Instance Methods
tag()
click to toggle source
# File lib/todo_agent/comment.rb, line 13 def tag @match[1] end
to_s()
click to toggle source
# File lib/todo_agent/comment.rb, line 17 def to_s "Matched: #{tag} in #{filename} at line #{line}" end