Class: Mustermann::Identity
- Defined in:
- lib/mustermann/identity.rb
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.
15 16 17 |
# File 'lib/mustermann/identity.rb', line 15 def ===(string) unescape(string) == @string end |