module T::Private::Methods

def self.install_singleton_method_added_hook(singleton_klass)

def self.install_singleton_method_added_hook(singleton_klass)
method = T::Private::ClassUtils.replace_method(singleton_klass, :singleton_method_added) do |name|
ds._on_method_added(self, name, is_singleton_method: true)
l when this gets called for the addition of this method itself. We
o compensate.
eton_method
ton_method.bind(self).call(name)
bove
method.bind(attached).call(:singleton_method_added)