Module: AccessorHooks::ClassMethods

Defined in:
lib/accessor_hooks.rb

Instance Method Summary collapse

Instance Method Details

#after_change(hook, on:) ⇒ Object



16
17
18
# File 'lib/accessor_hooks.rb', line 16

def after_change(hook, on:)
  extend_writers(hook, :after_change, on)
end

#before_change(hook, on:) ⇒ Object



12
13
14
# File 'lib/accessor_hooks.rb', line 12

def before_change(hook, on:)
  extend_writers(hook, :before_change, on)
end

#event_hooksObject



20
21
22
# File 'lib/accessor_hooks.rb', line 20

def event_hooks
  @event_hooks
end