class Regexp::Expression::Base

def matches?(string)

def matches?(string)
  Regexp.new(to_s) =~ string ? true : false
end