class StringMatcher::Regex

Public Class Methods

match?(string, regexp) click to toggle source
# File lib/string_matcher/regex.rb, line 3
def self.match?(string, regexp)
  string.match? Regexp.new regexp
end