module Roda::RodaPlugins::ClassMatchers::ClassMethods
def class_matcher(klass, re, &block)
array with the captures to yield to the match block.
called with all matched values from the regexp, and should return an
Set the regexp to use for the given class. The block given will be
def class_matcher(klass, re, &block) meth = :"_match_class_#{klass}" self::RodaRequest.class_eval do consume_re = consume_pattern(re) define_method(meth){consume(consume_re, &block)} private meth end end