method
number_of_captures
v2.2.1 -
Show latest stable
- Class:
ActionController::Routing::DynamicSegment
number_of_captures()public
No documentation available.
# File actionpack/lib/action_controller/routing/segments.rb, line 205
def number_of_captures
if regexp
regexp.number_of_captures + 1
else
1
end
end