You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ruby_downloader.rb
    path of file: ./repos/rubyapi/lib
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class RubyDownloader
  attr_reader :release

  def initialize(release)
    raise ArgumentError unless release.is_a?(RubyVersion)
    @release = release
  end

  def self.download(release)
    new(release).tap(&:download)
  end

  def download
    setup_paths

    if release.dev?
      # Don't cache dev, since i
    
  def download
    setup_paths

    if release.dev?
      # Don't cache dev, since it changes frequently
      extracted_download_path.rmtree if extracted_download_path.exist?
    elsif already_fetched?
      Rails.logger.debug {
        "Found previously extracted download for " \
        "#{release.version}, skipping"
      }
      return
    end

    fetch_ruby_archive
    prepare_environment
  end