Method: Thor::Group.printable_commands
- Defined in:
- lib/thor/group.rb
.printable_commands ⇒ Object Also known as: printable_tasks
Returns commands ready to be printed.
199 200 201 202 203 204 |
# File 'lib/thor/group.rb', line 199 def printable_commands(*) item = [] item << item << (desc ? "# #{desc.gsub(/\s+/m, ' ')}" : "") [item] end |