Method: ActionController::Routing::Segment#continue_string_structure
- Defined in:
- lib/action_controller/routing/segments.rb
#continue_string_structure(prior_segments) ⇒ Object
Continue generating string for the prior segments.
29 30 31 32 33 34 35 36 |
# File 'lib/action_controller/routing/segments.rb', line 29 def continue_string_structure(prior_segments) if prior_segments.empty? interpolation_statement(prior_segments) else new_priors = prior_segments[0..-2] prior_segments.last.string_structure(new_priors) end end |