Method: DataMapper::Hook::ClassMethods#after_class_method
- Defined in:
- lib/dm-core/support/hook.rb
#after_class_method(target_method, method_sym = nil, &block) ⇒ Object
Note:
Either method_sym or block is required.
Inject code that executes after the target class method.
-
71 72 73 |
# File 'lib/dm-core/support/hook.rb', line 71 def after_class_method(target_method, method_sym = nil, &block) install_hook :after, target_method, method_sym, :class, &block end |