protected Method

Route.requirement_for(key)

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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.