instance method Pathname#fnmatch
fnmatch(pattern, *args) -> bool
-
File.fnmatch(pattern, self.to_s, *args) と同じです。
- [PARAM] pattern:
- パターンを文字列で指定します。ワイルドカードとして `*', `?', `[]' が使用できま す。Dir.glob とは違って `{}' や `**/' は使用できません。
- [PARAM] args:
- File.fnmatch を参照してください。
[SEE_ALSO] File.fnmatch
class Pathname