Method: BBLib::Hooks#singleton_method_added
- Defined in:
- lib/bblib/core/mixins/hooks.rb
#singleton_method_added(method) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/bblib/core/mixins/hooks.rb', line 26 def singleton_method_added(method) if _defining_hook? @_defining_hook = false else self.singleton_class.send(:_hook_method, method, force: true) if self.singleton_class.respond_to?(:_hook_method) end end |