module Roda::RodaPlugins::CustomMatchers::RequestMethods

  1. lib/roda/plugins/custom_matchers.rb

Methods

Public Instance

  1. unsupported_matcher

Public Instance methods

unsupported_matcher(matcher)

Try custom matchers before calling super

[show source]
   # File lib/roda/plugins/custom_matchers.rb
72 def unsupported_matcher(matcher)
73   roda_class.opts[:custom_matchers].each do |match_class, meth|
74     if match_class === matcher
75       return send(meth, matcher)
76     end
77   end
78 
79   super
80 end