我猜你是想实现一个装饰器?
试试 prepend
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 2976 | 2367 | 49 | 380 | 7 | 4 |
| Helpers | 390 | 317 | 2 | 35 | 17 | 7 |
| Models | 6214 | 4902 | 90 | 467 | 5 | 8 |
| Mailers | 0 | 0 | 0 | 0 | 0 | 0 |
| Libraries | 1873 | 1555 | 50 | 147 | 2 | 8 |
| Controller tests | 1315 | 1031 | 24 | 3 | 0 | 341 |
| Helper tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Model tests | 4140 | 3462 | 38 | 8 | 0 | 430 |
| Mailer tests | 0 | 0 | 0 | 0 | 0 | 0 |
| Integration tests | 0 | 0 | 0 | 0 | 0 | 0 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total | 16908 | 13634 | 253 | 1040 | 4 | 11 |
+----------------------+-------+-------+---------+---------+-----+-------+
Code LOC: 9141 Test LOC: 4493 Code to Test Ratio: 1:0.5
我们项目拆的七零八落的,这是其中一个