Class: Pluginscan::FileFinder

Inherits:
Object
  • Object
show all
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

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

#countObject



10
11
12
# File 'lib/pluginscan/file_finder.rb', line 10

def count
  found_files.count
end

#php_filesObject



14
15
16
# File 'lib/pluginscan/file_finder.rb', line 14

def php_files
  found_files.php_files
end