Class: Pluginscan::FileFinder
- Inherits:
-
Object
- Object
- Pluginscan::FileFinder
- Defined in:
- lib/pluginscan/file_finder.rb
Overview
Responsible for searching through a directory for php files, and counting the total files
Defined Under Namespace
Classes: FoundFiles
Instance Method Summary collapse
- #count ⇒ Object
-
#initialize(directory) ⇒ FileFinder
constructor
A new instance of FileFinder.
- #php_files ⇒ Object
Constructor Details
#initialize(directory) ⇒ FileFinder
Returns a new instance of FileFinder.
6 7 8 |
# File 'lib/pluginscan/file_finder.rb', line 6 def initialize(directory) @directory = directory end |
Instance Method Details
#count ⇒ Object
10 11 12 |
# File 'lib/pluginscan/file_finder.rb', line 10 def count found_files.count end |
#php_files ⇒ Object
14 15 16 |
# File 'lib/pluginscan/file_finder.rb', line 14 def php_files found_files.php_files end |