class RuboCop::AST::RegexpNode

def to_regexp

Returns:
  • (Regexp) - a regexp of this node
def to_regexp
  Regexp.new(content, options)
end