There's no documentation for this item.
Source Code
# File action_controller/routing/route.rb, line 230 def requirement_for(key) return requirements[key] if requirements.key? key segments.each do |segment| return segment.regexp if segment.respond_to?(:key) && segment.key == key end nil end
<code/>and<pre/>for code samples.