class RuboCop::AST::RegexpNode

def delimiters

Returns:
  • (String) - the regexp delimiters (without %r)
def delimiters
  [loc.begin.source[-1], loc.end.source[0]]
end