Module: T::Private::Methods::SingletonMethodHooks

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

Instance Method Summary collapse

Instance Method Details

#singleton_method_added(name) ⇒ Object



784
785
786
787
788
789
# File 'lib/types/private/methods/_methods.rb', line 784

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