diff options
author | Alberto Almagro <albertoalmagro@gmail.com> | 2018-12-07 00:02:38 +0100 |
---|---|---|
committer | Alberto Almagro <albertoalmagro@gmail.com> | 2018-12-07 09:25:10 +0100 |
commit | 0086400dd75e73152429f9acf2fce984d8f46e02 (patch) | |
tree | f4eb17334393e35fead1158e91ecb9003bf00786 /actionmailer/test | |
parent | b86f65a816546ff8eea39d25b62c995c7efc21dc (diff) | |
download | rails-0086400dd75e73152429f9acf2fce984d8f46e02.tar.gz rails-0086400dd75e73152429f9acf2fce984d8f46e02.tar.bz2 rails-0086400dd75e73152429f9acf2fce984d8f46e02.zip |
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.
Diffstat (limited to 'actionmailer/test')
0 files changed, 0 insertions, 0 deletions