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.



56
57
58
# File 'lib/roda/plugins/symbol_matchers.rb', line 56

def symbol_matcher(s, re)
  request_module{define_method(:"match_symbol_#{s}"){re}}
end