Class: RIO::Match::Entry::Glob

Inherits:
Base show all
Defined in:
lib/rio/entrysel.rb

Instance Attribute Summary

Attributes inherited from Base

#match_to

Instance Method Summary collapse

Methods inherited from Base

#===, #initialize, #inspect

Constructor Details

This class inherits a constructor from RIO::Match::Entry::Base

Instance Method Details

#=~(entry) ⇒ Object



70
71
72
# File 'lib/rio/entrysel.rb', line 70

def =~(entry) 
  ::File.fnmatch?(@match_to,entry.filename.to_s) 
end