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)

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

[show source]
   # File lib/roda/plugins/symbol_matchers.rb
53 def symbol_matcher(s, re)
54   meth = :"match_symbol_#{s}"
55   self::RodaRequest.send(:define_method, meth){re}
56   self::RodaRequest.send(:private, meth)
57 end