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: CoffeePrice.rb
    path of file: ./repos/textbook-curriculum/01-ruby-fundamentals/source
    
    the code of the file until where you have to start completion: def coffee_price(type, size, extra_shots: 0, cold: false)
    # Find the base price for this drink

    
def coffee_price(type, size, extra_shots: 0, cold: false)
    # Find the base price for this drink
    case type
    when :drip
      price = 1.5
    when :latte
      price = 3.7
    when :cappuccino
      price = 3.2
    else
      puts "Invalid coffee type: #{type}"
      return
    end