Class: BigFiles::SourceCodeFinder
- Inherits:
-
Object
- Object
- BigFiles::SourceCodeFinder
- Defined in:
- lib/bigfiles/source_code_finder.rb
Overview
Finds source code files in the current directory
Instance Method Summary collapse
- #find(glob) ⇒ Object
-
#initialize(filefind: Find, globber: Dir) ⇒ SourceCodeFinder
constructor
A new instance of SourceCodeFinder.
Constructor Details
#initialize(filefind: Find, globber: Dir) ⇒ SourceCodeFinder
Returns a new instance of SourceCodeFinder.
6 7 8 9 10 |
# File 'lib/bigfiles/source_code_finder.rb', line 6 def initialize(filefind: Find, globber: Dir) @filefind = filefind @globber = globber end |
Instance Method Details
#find(glob) ⇒ Object
12 13 14 |
# File 'lib/bigfiles/source_code_finder.rb', line 12 def find(glob) @globber.glob(glob) end |