Module: T::CompatibilityPatches::RSpecCompatibility::RecorderExtensions

Defined in:
lib/types/compatibility_patches.rb

Instance Method Summary collapse

Instance Method Details

#observe!(method_name) ⇒ Object



29
30
31
32
33
34
35
# File 'lib/types/compatibility_patches.rb', line 29

def observe!(method_name)
  if @klass.method_defined?(method_name.to_sym)
    method = @klass.instance_method(method_name.to_sym)
    T::Private::Methods.maybe_run_sig_block_for_method(method)
  end
  super(method_name)
end