module RuboCop::AST::MethodIdentifierPredicates

def bang_method?

Returns:
  • (Boolean) - whether the method is a bang method
def bang_method?
  method_name.to_s.end_with?('!')
end