lib/rubocop/cop/cop.rb in rubocop-0.40.0 vs lib/rubocop/cop/cop.rb in rubocop-0.41.0
- old
+ new
@@ -191,10 +191,10 @@
Formatter::DisabledConfigFormatter.config_to_allow_offenses[cop_name] =
hash
end
def target_ruby_version
- @config.for_all_cops['TargetRubyVersion']
+ @config.target_ruby_version
end
def parse(source, path = nil)
ProcessedSource.new(source, target_ruby_version, path)
end