How to get generators call other generators in rails 3

前端 未结 4 696
攒了一身酷
攒了一身酷 2021-02-05 16:58

I am experimenting with gem development, right now specifically generators. So far I have successfully created two generators that do their job just perfectly. These two generat

4条回答
  •  猫巷女王i
    2021-02-05 17:20

    Generators are based off of Thor, so you can use the apply method.

    This is what the Rails Templater gem does. (Here's a walk through the Rails Templater gem.)

提交回复
热议问题