class RuboCop::AST::ArrayNode

def bracketed?

Returns:
  • (Boolean) - whether the array is enclosed in percent or square
def bracketed?
  square_brackets? || percent_literal?
end