Class: Regexp
Instance Method Summary collapse
-
#match!(str, pos = 0) ⇒ MatchData
Like Regexp#match, but raises an exception if the match fails.
Instance Method Details
#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 |