lib/roda/plugins/param_matchers.rb in roda-1.3.0 vs lib/roda/plugins/param_matchers.rb in roda-2.0.0
- old
+ new
@@ -4,18 +4,18 @@
# on the request's params.
#
# It adds a :param matcher for matching on any param with the
# same name, yielding the value of the param.
#
- # r.on :param=>'foo' do |value|
+ # r.on :param => 'foo' do |value|
# # Matches '?foo=bar', '?foo='
# # Doesn't match '?bar=foo'
# end
#
# It adds a :param! matcher for matching on any non-empty param
- # with the same name, yielding the value of the param
+ # with the same name, yielding the value of the param.
#
- # r.on :param!=>'foo' do |value|
+ # r.on(:param! => 'foo') do |value|
# # Matches '?foo=bar'
# # Doesn't match '?foo=', '?bar=foo'
# end
module ParamMatchers
module RequestMethods