class RuboCop::AST::BlockNode

def last_argument

Returns:
  • (Node, nil) - the last argument of this block,
def last_argument
  arguments[-1]
end