Skip to content
instance method

Pathname#fnmatch

(::String pattern, ?::Integer flags) -> bool
fnmatch(pattern, ...)

See File.fnmatch. Return true if the receiver matches the given pattern.

See also #fnmatch? #find #file? #freeze also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0