Class: FileFilter
- Inherits:
-
Object
- Object
- FileFilter
- Defined in:
- lib/filters/file_filter.rb
Instance Method Summary collapse
- #complete ⇒ Object
- #filter(path) ⇒ Object
-
#initialize(file_class) ⇒ FileFilter
constructor
A new instance of FileFilter.
Constructor Details
#initialize(file_class) ⇒ FileFilter
Returns a new instance of FileFilter.
3 4 5 |
# File 'lib/filters/file_filter.rb', line 3 def initialize(file_class) @file_class = file_class end |
Instance Method Details
#complete ⇒ Object
11 12 |
# File 'lib/filters/file_filter.rb', line 11 def complete end |
#filter(path) ⇒ Object
7 8 9 |
# File 'lib/filters/file_filter.rb', line 7 def filter(path) return @file_class.file?(path) end |