mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
0086400dd7
This first started with moving type method inside `ActionDispatch::Journey::Nodes::Symbol`. `AD::Journey::Nodes::Symbol#type` was generated dynamically with an `each` block. While this is OK for classes like `AD::Journey::Nodes::Slash` or `AD::Journey::Nodes::Dot` which don't have further implementation, all other classes containing more logic have this method defined in their class body. This patch does the same in this case. On code review process @kamipo suggested to fully expand over metaprogramming for Slash and Dot classes, a topic on which I agree with him. |
||
---|---|---|
.. | ||
gtg | ||
nfa | ||
nodes | ||
path | ||
router | ||
visualizer | ||
formatter.rb | ||
parser.rb | ||
parser.y | ||
parser_extras.rb | ||
route.rb | ||
router.rb | ||
routes.rb | ||
scanner.rb | ||
visitors.rb |