Class: Glyptodont::TodoResearcher

Inherits:
Object
  • Object
show all
Defined in:
lib/glyptodont/todo_researcher.rb

Overview

Finds all the TODOs in a directory managed by Git, who last touched them and when.

Instance Method Summary collapse

Constructor Details

#initialize(directory, ignore, keywords) ⇒ TodoResearcher

Returns a new instance of TodoResearcher.



9
10
11
12
13
14
# File 'lib/glyptodont/todo_researcher.rb', line 9

def initialize(directory, ignore, keywords)
  @directory = directory
  @ignore = ignore
  @keywords = Array(keywords)
  @annotator = {}
end

Instance Method Details

#researchObject



16
17
18
# File 'lib/glyptodont/todo_researcher.rb', line 16

def research
  annotate(exclude_ignored(extract_details(git.grep(keyword_rexexp))))
end