Class: HiddenHooks::SetUpProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/hidden_hooks.rb

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(hook, klass, &block) ⇒ Object (private)



14
15
16
# File 'lib/hidden_hooks.rb', line 14

def method_missing hook, klass, &block
  ::HiddenHooks.hooks[klass][hook] << block
end