This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
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.
# File railties/lib/rails_generator/commands.rb, line 13
def self.instance(command, generator)
const_get(command.to_s.camelize).new(generator)
end