Method: Regexp#match!
- Defined in:
- lib/mini_sanity/match.rb
#match!(str, pos = 0) ⇒ MatchData
Like Regexp#match, but raises an exception if the match fails.
53 54 55 |
# File 'lib/mini_sanity/match.rb', line 53 def match!(str, pos = 0) str.match!(self, pos) end |