Method: RuboCop::Cop::Base#target_gem_version

Defined in:
lib/rubocop/cop/base.rb

#target_gem_version(gem_name) ⇒ Object

Returns a gems locked versions (i.e. from Gemfile.lock or gems.locked)

[View source]

266
267
268
# File 'lib/rubocop/cop/base.rb', line 266

def target_gem_version(gem_name)
  @config.gem_versions_in_target && @config.gem_versions_in_target[gem_name]
end