lib/rubocop/directive_comment.rb in rubocop-1.12.0 vs lib/rubocop/directive_comment.rb in rubocop-1.12.1

- old
+ new

@@ -52,9 +52,14 @@ # Checks if this directive disables cops def disabled? %w[disable todo].include?(mode) end + # Checks if this directive enables cops + def enabled? + mode == 'enable' + end + # Checks if this directive enables all cops def enabled_all? !disabled? && all_cops? end