# File lib/rake.rb, line 2140 2140: def truncate(string, width) 2141: if string.length <= width 2142: string 2143: else 2144: ( string[0, width-3] || "" ) + "..." 2145: end 2146: end