module RegexpMatchPolyfill::StringExtension

Public Instance Methods

match?(regexp, position = 0) click to toggle source
# File lib/regexp-match-polyfill.rb, line 16
def match?(regexp, position = 0)
  !!(self[position..-1] =~ regexp)
end