module RuboCop::AST::MethodIdentifierPredicates

def prefix_bang?

Returns:
  • (Boolean) - whether this method is a prefix bang
def prefix_bang?
  negation_method? && loc.selector.is?('!')
end