class Rake::Application
def truncate(string, width)
def truncate(string, width) if string.nil? "" elsif string.length <= width string else ( string[0, width-3] || "" ) + "..." end end
def truncate(string, width) if string.nil? "" elsif string.length <= width string else ( string[0, width-3] || "" ) + "..." end end