class RuboCop::AST::BlockNode

def braces?

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