module RuboCop::AST::ParameterizedNode

def block_argument?

Returns:
  • (Boolean) - whether the last argument of the node is a block pass
def block_argument?
  arguments? &&
    (last_argument.block_pass_type? || last_argument.blockarg_type?)
end