class ActionDispatch::Journey::Ast

def requirements=(requirements)

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