Module: SMG::HTTP::Hooks
- Defined in:
- lib/smg/http/hooks.rb
Instance Method Summary collapse
Instance Method Details
#after_request(options = {}, &block) ⇒ Object
9 10 11 |
# File 'lib/smg/http/hooks.rb', line 9 def after_request( = {}, &block) callback(:after_request, , &block) end |
#before_request(options = {}, &block) ⇒ Object
5 6 7 |
# File 'lib/smg/http/hooks.rb', line 5 def before_request( = {}, &block) callback(:before_request, , &block) end |