Module: T::Private::Methods::MethodHooks

Included in:
Sig
Defined in:
lib/types/private/methods/_methods.rb

Instance Method Summary collapse

Instance Method Details

#method_added(name) ⇒ Object



775
776
777
778
779
780
# File 'lib/types/private/methods/_methods.rb', line 775

def method_added(name)
  key = ::T::Private::Methods._on_method_added(T.unsafe(self), T.unsafe(self), name)
  T::Private::DeclState.current.last_method_key = key if key
  super(name)
  T::Private::DeclState.current.last_method_key = nil if key
end