module Roda::RodaPlugins::SymbolMatchers::ClassMethods

  1. lib/roda/plugins/symbol_matchers.rb

Methods

Public Instance

  1. symbol_matcher

Public Instance methods

symbol_matcher(s, re, &block)

Set the regexp to use for the given symbol, instead of the default.

[show source]
   # File lib/roda/plugins/symbol_matchers.rb
82 def symbol_matcher(s, re, &block)
83   meth = :"match_symbol_#{s}"
84   array = [re, block].freeze
85   self::RodaRequest.send(:define_method, meth){array}
86   self::RodaRequest.send(:private, meth)
87 end