class RuboCop::AST::HashNode

def braces?

Returns:
  • (Boolean) - whether the `hash` literal is enclosed in braces
def braces?
  loc.end&.is?('}')
end