- Inheritance
Classes & Modules
- Rails::Generator::Commands::Base
- Rails::Generator::Commands::Create
- Rails::Generator::Commands::Destroy
- Rails::Generator::Commands::List
- Rails::Generator::Commands::RewindBase
- Rails::Generator::Commands::Update
Methods
Class
Visibility | Signature |
---|---|
public | included (base) |
public | instance (command, generator) |
Class Method Detail
included(base)
Even more convenient access to commands. Include Commands in the generator Base class to get a nice command instance method which returns a delegate for the requested command.
instance(command, generator)
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.