method
write_commands
v5.0.0.1 -
Show latest stable
- Class:
Rails::Engine::CommandsTasks
write_commands(commands)private
No documentation available.
# File railties/lib/rails/engine/commands_tasks.rb, line 89
def write_commands(commands)
width = commands.map { |name, _| name.size }.max || 10
commands.each { |command| printf(" %-#{width}s %s\n", *command) }
end