Class: FileFilter

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

Instance Method Summary collapse

Constructor Details

#initialize(file_class) ⇒ FileFilter


3
4
5
# File 'lib/filters/file_filter.rb', line 3

def initialize(file_class)
  @file_class = file_class
end

Instance Method Details

#completeObject


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