Flowdock
method

instance

Importance_1
v2.3.8 - Show latest stable - 0 notes - Class: Rails::Generator::Commands
instance(command, generator) public

Here’s a convenient way to get a handle on generator commands. Command.instance(‘destroy’, my_generator) instantiates a Destroy delegate of my_generator ready to do your dirty work.

Show source
Register or log in to add new notes.