# File lib/rake/application.rb, line 268 268: def truncate(string, width) 269: if string.length <= width 270: string 271: else 272: ( string[0, width-3] || "" ) + "..." 273: end 274: end