class RuboCop::AST::RegexpNode

def percent_r_literal?

Returns:
  • (Bool) - if the regexp is a %r{...} literal (using any delimiters)
def percent_r_literal?
  !slash_literal?
end