lib/rubocop/cop/style/class_methods.rb in rubocop-0.35.1 vs lib/rubocop/cop/style/class_methods.rb in rubocop-0.36.0

- old
+ new

@@ -1,6 +1,7 @@ # encoding: utf-8 +# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for uses of the class/module name instead of @@ -19,10 +20,10 @@ # def self.class_method # ... # end # end class ClassMethods < Cop - MSG = 'Use `self.%s` instead of `%s.%s`.' + MSG = 'Use `self.%s` instead of `%s.%s`.'.freeze def on_class(node) name, _superclass, body = *node check(name, body) end