Sha256: 36da60824c601aaf704b4561b8932e72df3bb310ddfe26fdab15ed42dc1ef178

Contents?: true

Size: 382 Bytes

Versions: 10

Compression:

Stored size: 382 Bytes

Contents

module Edge
	class Console
		def colorize(text, color_code)
			"\e[#{color_code}m#{text}\e[0m"
		end

		def red(text); colorize(text, 31); end
		def green(text); colorize(text, 32); end
		def yellow(text); colorize(text, 33); end
		def blue(text); colorize(text, 34); end
		def magenta(text); colorize(text, 35); end
		def cyan(text); colorize(text, 36); end

	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
edge_framework-0.9.0 lib/edge/console.rb
edge_framework-0.8.1 lib/edge/console.rb
edge_framework-0.6.1 lib/edge/console.rb
edge_framework-0.6.0 lib/edge/console.rb
edge_framework-0.5.0 lib/edge/console.rb
edge_framework-0.3.0 lib/edge/console.rb
edge_framework-0.2.3 lib/edge/console.rb
edge_framework-0.2.1 lib/edge/console.rb
edge_framework-0.2.0 lib/edge/console.rb
edge_framework-0.1.0 lib/edge/console.rb