class RuboCop::TargetRuby

@api private
The kind of Ruby that code inspected by RuboCop is written in.

def self.supported_versions

def self.supported_versions
  KNOWN_RUBIES
end

def initialize(config)

def initialize(config)
  @config = config
end

def rubocop_version_with_support

def rubocop_version_with_support
  if supported?
    RuboCop::Version.version
  else
    OBSOLETE_RUBIES[version]
  end
end

def source

def source
  @source ||= SOURCES.each.lazy.map { |c| c.new(@config) }.detect(&:version)
end

def supported?

def supported?
  KNOWN_RUBIES.include?(version)
end

def version

def version
  source.version
end