Class: Glyptodont::TodoResearcher
- Inherits:
-
Object
- Object
- Glyptodont::TodoResearcher
- 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
-
#initialize(directory, ignore, keywords) ⇒ TodoResearcher
constructor
A new instance of TodoResearcher.
- #research ⇒ Object
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
#research ⇒ Object
16 17 18 |
# File 'lib/glyptodont/todo_researcher.rb', line 16 def research annotate(exclude_ignored(extract_details(git.grep(keyword_rexexp)))) end |