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.
- #initialize(string, **options) ⇒ Shell, Pattern constructor
Methods inherited from Pattern
#=~, #expand, #match, #named_captures, #names, new, #params, supported?, supported_options, #to_s
Constructor Details
Instance Method Details
#===(string) ⇒ Boolean
Returns Whether or not the pattern matches the given string.
25 26 27 |
# File 'lib/mustermann/shell.rb', line 25 def ===(string) File.fnmatch? @string, unescape(string), @flags end |