Even more convenient access to commands. Include <a
href="/rails/Commands">Commands</a> in the generator Base class to get a nice
#command instance method
which returns a delegate for the requested command.
# File railties/lib/rails_generator/commands.rb, line 19
def self.append_features(base)
base.send(:define_method, :command) do |command|
Commands.instance(command, self)
end
end