method
requirements=
v7.2.3 -
Show latest stable
- Class:
ActionDispatch::Journey::Ast
requirements=(requirements)public
No documentation available.
# File actionpack/lib/action_dispatch/journey/nodes/node.rb, line 25
def requirements=(requirements)
# inject any regexp requirements for `star` nodes so they can be determined
# nullable, which requires knowing if the regex accepts an empty string.
(symbols + stars).each do |node|
re = requirements[node.to_sym]
node.regexp = re if re
end
end