lib/rubocop/cop/style/class_methods.rb in rubocop-1.12.1 vs lib/rubocop/cop/style/class_methods.rb in rubocop-1.13.0

- old
+ new

@@ -29,12 +29,10 @@ return unless node.body if node.body.defs_type? check_defs(node.identifier, node.body) elsif node.body.begin_type? - node.body.each_child_node(:defs) do |def_node| - check_defs(node.identifier, def_node) - end + node.body.each_child_node(:defs) { |def_node| check_defs(node.identifier, def_node) } end end alias on_module on_class private