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: method_double.rb
    path of file: ./repos/rspec-mocks/lib/rspec/mocks
    
    the code of the file until where you have to start completion: module RSpec
  module Mocks
    # @private
    class MethodDouble
      # @private TODO: drop in favor of FrozenError in ruby 2.5+
      FROZEN_ERROR_MSG = /can't modify frozen/

      # @private
      attr_reader :method_name, :object, :expectations, :stubs, :method_stasher

      # @private
      def initialize(object, method
    
      def show_frozen_warning
        RSpec.warn_with(
          "WARNING: rspec-mocks was unable to restore the original `#{@method_name}` " \
          "method on #{@object.inspect} because it has been frozen.  If you reuse this " \
          "object, `#{@method_name}` will continue to respond with its stub implementation.",
          :call_site                      => nil,
          :use_spec_location_as_call_site => true
        )
      end