Sha256: af627925d7ca894863b669e53781b98ade4c576da3b1078069c405ef0d1481ee
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
require_relative './color.rb' class Console def self.announce_task_start task line = "==" + Color.cyan + "[:" + Color.yellow + task + Color.cyan + "]" + Color.clear while(line.length < 80) do line = line + "=" end puts line + Color.clear end def self.announce_task_end task, elapsed_str line = "==" + Color.cyan + "[:" + Color.yellow + task + Color.cyan + "]" + Color.clear + " completed in " + Color.bright_green + elapsed_str + Color.clear puts line + Color.clear puts " " end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dev_tasks-0.0.9 | lib/console.rb |
dev_tasks-0.0.8 | lib/console.rb |
dev_tasks-0.0.7 | lib/console.rb |