Method: Pageflow::Configuration#hooks
- Defined in:
- lib/pageflow/configuration.rb
#hooks ⇒ Object (readonly)
Subscribe to hooks in order to be notified of events. Any object with a call method can be a subscriber
Example:
config.hooks.subscribe(:submit_file, -> { do_something })
59 60 61 |
# File 'lib/pageflow/configuration.rb', line 59 def hooks @hooks end |