Class: TodoFinder

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

Instance Method Summary collapse

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

#findObject



28
29
30
# File 'lib/what_now.rb', line 28

def find
  @paths.flat_map { |file| search_file(file) }
end