Class: Bukin::FileMatch

Inherits:
Object
  • Object
show all
Defined in:
lib/bukin/file_match.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(search) ⇒ FileMatch

Returns a new instance of FileMatch.



4
5
6
# File 'lib/bukin/file_match.rb', line 4

def initialize(search)
  @search = search
end

Class Method Details

.anyObject



14
15
16
# File 'lib/bukin/file_match.rb', line 14

def self.any
  FileMatch.new(true)
end

Instance Method Details

#match(file_name) ⇒ Object Also known as: =~



8
9
10
# File 'lib/bukin/file_match.rb', line 8

def match(file_name)
  match_helper(@search, file_name)
end