rails/actionpack/lib/action_dispatch/journey/nodes
Alberto Almagro 0086400dd7 Expand metaprogramming for Symbol, Slash and Dot.
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.
2018-12-07 09:25:10 +01:00
..
node.rb Expand metaprogramming for Symbol, Slash and Dot. 2018-12-07 09:25:10 +01:00