Module Rails::Generator::Commands
In: lib/rails_generator/commands.rb

Methods

included   instance  

Classes and Modules

Class Rails::Generator::Commands::Base
Class Rails::Generator::Commands::Create
Class Rails::Generator::Commands::Destroy
Class Rails::Generator::Commands::List
Class Rails::Generator::Commands::RewindBase
Class Rails::Generator::Commands::Update

Public Class methods

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.

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.

[Validate]