Class: TodoFinder
- Inherits:
-
Object
- Object
- TodoFinder
- Defined in:
- lib/what_now.rb
Instance Method Summary collapse
- #find ⇒ Object
-
#initialize(paths, creator) ⇒ TodoFinder
constructor
A new instance of TodoFinder.
Constructor Details
#initialize(paths, creator) ⇒ TodoFinder
Returns a new instance of TodoFinder.
23 24 25 26 |
# File 'lib/what_now.rb', line 23 def initialize(paths, creator) @paths = paths @creator = creator end |
Instance Method Details
#find ⇒ Object
28 29 30 |
# File 'lib/what_now.rb', line 28 def find @paths.flat_map { |file| search_file(file) } end |