class Thor
def printable_tasks(all=true)
def printable_tasks(all=true) (all ? all_tasks : tasks).map do |_, task| item = [] item << banner(task) item << (task.description ? "# #{task.description.gsub(/\s+/m,' ')}" : "") item end end
def printable_tasks(all=true) (all ? all_tasks : tasks).map do |_, task| item = [] item << banner(task) item << (task.description ? "# #{task.description.gsub(/\s+/m,' ')}" : "") item end end