Module: Roda::RodaPlugins::MatchHook::ClassMethods

Defined in:
lib/roda/plugins/match_hook.rb

Instance Method Summary collapse

Instance Method Details

#match_hook(&block) ⇒ Object

Add a match hook.



24
25
26
27
28
# File 'lib/roda/plugins/match_hook.rb', line 24

def match_hook(&block)
  meth = define_roda_method("match_hook", 0, &block)
  add_match_hook{|_,_| send(meth)}
  nil
end