Class: Mustermann::Shell
Overview
Matches strings that are identical to the pattern.
Instance Method Summary collapse
-
#===(string) ⇒ Boolean
Whether or not the pattern matches the given string.
Methods inherited from Pattern
#=~, #expand, #initialize, #match, #named_captures, #names, new, #params, supported?, supported_options, #to_s
Constructor Details
This class inherits a constructor from Mustermann::Pattern
Instance Method Details
#===(string) ⇒ Boolean
Returns Whether or not the pattern matches the given string.
18 19 20 |
# File 'lib/mustermann/shell.rb', line 18 def ===(string) File.fnmatch? @string, unescape(string), FLAGS end |