Public Instance methods
custom_matcher(match_class, &block)
[show source]
# File lib/roda/plugins/custom_matchers.rb 61 def custom_matcher(match_class, &block) 62 custom_matchers = Hash[opts[:custom_matchers]] 63 meth = custom_matchers[match_class] = custom_matchers[match_class] || :"_custom_matcher_#{match_class}" 64 opts[:custom_matchers] = custom_matchers.freeze 65 self::RodaRequest.send(:define_method, meth, &block) 66 nil 67 end