class Regexp::Syntax::Base
def method_missing(name, *args)
def method_missing(name, *args) if self.class.respond_to?(name) warn 'Using instances of Regexp::Parser::Syntax is deprecated ' \ "and will no longer be supported in v3.0.0. Please call "\ "methods on the class directly, e.g.: #{self.class}.#{name}" self.class.send(name, *args) else super end end