Module: Roda::RodaPlugins::SymbolMatchers::ClassMethods

Defined in:
lib/roda/plugins/symbol_matchers.rb

Instance Method Summary collapse

Instance Method Details

#symbol_matcher(s, re) ⇒ Object

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



53
54
55
56
57
# File 'lib/roda/plugins/symbol_matchers.rb', line 53

def symbol_matcher(s, re)
  meth = :"match_symbol_#{s}"
  self::RodaRequest.send(:define_method, meth){re}
  self::RodaRequest.send(:private, meth)
end