method
regexp_chunk
v2.2.1 -
Show latest stable
- Class:
ActionController::Routing::DynamicSegment
regexp_chunk()public
No documentation available.
# File actionpack/lib/action_controller/routing/segments.rb, line 193
def regexp_chunk
if regexp
if regexp_has_modifiers?
"(#{regexp.to_s})"
else
"(#{regexp.source})"
end
else
"([^#{Routing::SEPARATORS.join}]+)"
end
end