method

requirements=

rails latest stable - Class: ActionDispatch::Journey::Ast
requirements=(requirements)
public

No documentation available.

# File actionpack/lib/action_dispatch/journey/nodes/node.rb, line 23
      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