module Roda::RodaPlugins::MatchHook::ClassMethods

  1. lib/roda/plugins/match_hook.rb

Methods

Public Instance

  1. match_hook

Public Instance methods

match_hook(&block)

Add a match hook.

[show source]
   # File lib/roda/plugins/match_hook.rb
24 def match_hook(&block)
25   meth = define_roda_method("match_hook", 0, &block)
26   add_match_hook{|_,_| send(meth)}
27   nil
28 end