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_source.rb
    path of file: ./repos/ruby.wasm/lib/ruby_wasm/build/product
    
    the code of the file until where you have to start completion: require_relative "./product"

module RubyWasm
  class BuildSource < BuildProduct
    def initialize(params, build_dir)
      @params = params
      @build_dir = build_dir
    end

    def name
      @params[
    
    def cache_key(digest)
      digest << @params[:type]
      case @params[:type]
      when "github"
        digest << @params[:rev]
      when "tarball"
        digest << @params[:url]
      when "local"
        digest << File.mtime(@params[:path]).to_i.to_s
      else
        raise "unknown source type: #{@params[:type]}"
      end