Namespace
Methods
- E
- N
- R
Constants
ESCAPE_PATH | = | ->(value) { Router::Utils.escape_path(value) } |
ESCAPE_SEGMENT | = | ->(value) { Router::Utils.escape_segment(value) } |
Class Public methods
new(parts)
Link
required_path(symbol)
Link
required_segment(symbol)
Link
Instance Public methods
evaluate(hash)
Link
# File actionpack/lib/action_dispatch/journey/visitors.rb, line 35 def evaluate(hash) parts = @parts.dup @parameters.each do |index| param = parts[index] value = hash[param.name] return ''.freeze unless value parts[index] = param.escape value end @children.each { |index| parts[index] = parts[index].evaluate(hash) } parts.join end