Class: Bukin::FileMatch
- Inherits:
-
Object
- Object
- Bukin::FileMatch
- Defined in:
- lib/bukin/file_match.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(search) ⇒ FileMatch
constructor
A new instance of FileMatch.
- #match(file_name) ⇒ Object (also: #=~)
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
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 |