module Roda::RodaPlugins::HashMatcher::ClassMethods
def hash_matcher(key, &block)
match, and anything else to match. See the HashMatcher module
call the block. The block should return nil or false to not
block, so that using a hash key in a request match method will
Create a match_#{key} method in the request class using the given
def hash_matcher(key, &block) meth = :"match_#{key}" self::RodaRequest.send(:define_method, meth, &block) self::RodaRequest.send(:private, meth) end