class RuboCop::AST::BlockNode

def keywords?

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