RuboCop::Cop
This cop checks for uses if the keyword not instead of !.
# File lib/rubocop/cop/style/not.rb, line 11 def on_send(node) _receiver, method_name, *args = *node # not does not take any arguments return unless args.empty? && method_name == :! && node.loc.selector.is?('not') add_offense(node, :selector) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.