Module: Hooks::InstanceHooks::ClassMethods
- Included in:
- Hooks::InstanceHooks
- Defined in:
- lib/hooks/instance_hooks.rb
Instance Method Summary collapse
-
#define_hook_writer(name) ⇒ Object
Adds a hook writer to the instance in addition to the class writer.
Instance Method Details
#define_hook_writer(name) ⇒ Object
Adds a hook writer to the instance in addition to the class writer.
16 17 18 19 |
# File 'lib/hooks/instance_hooks.rb', line 16 def define_hook_writer(name) super class_eval *hook_writer_args(name) end |