Module: T::CompatibilityPatches::RSpecCompatibility::MethodDoubleExtensions

Defined in:
lib/types/compatibility_patches.rb

Instance Method Summary collapse

Instance Method Details

#initialize(object, method_name, proxy) ⇒ Object



40
41
42
43
44
45
46
# File 'lib/types/compatibility_patches.rb', line 40

def initialize(object, method_name, proxy)
  if ::Kernel.instance_method(:respond_to?).bind(object).call(method_name, true)
    method = ::RSpec::Support.method_handle_for(object, method_name)
    T::Private::Methods.maybe_run_sig_block_for_method(method)
  end
  super(object, method_name, proxy)
end