Module: Roda::RodaPlugins::SymbolMatchers::ClassMethods
- Defined in:
- lib/roda/plugins/symbol_matchers.rb
Instance Method Summary collapse
-
#symbol_matcher(s, re) ⇒ Object
Set the regexp to use for the given symbol, instead of the default.
Instance Method Details
#symbol_matcher(s, re) ⇒ Object
Set the regexp to use for the given symbol, instead of the default.
62 63 64 |
# File 'lib/roda/plugins/symbol_matchers.rb', line 62 def symbol_matcher(s, re) self::RodaRequest.send(:define_method, :"match_symbol_#{s}"){re} end |