Created
July 29, 2016 04:26
-
-
Save mike-engel/3eeb673c42f8cdc44391af2d6acd1ae4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/ruby | |
require 'rubygems' | |
require 'colored' | |
print 'Colors are'.bold | |
print ' black'.black | |
print ' blue'.blue | |
print ' cyan'.cyan | |
print ' green'.green | |
print ' magenta'.magenta | |
print ' red'.red | |
print ' white '.white | |
print 'and'.underline, ' yellow'.yellow, "\n" | |
puts 'black on blue'.black_on_blue | |
puts 'black on cyan'.black_on_cyan | |
puts 'black on green'.black_on_green | |
puts 'black on magenta'.black_on_magenta | |
puts 'black on red'.black_on_red | |
puts 'white on black'.white_on_black | |
puts 'white on blue'.white_on_blue | |
puts 'white on cyan'.white_on_cyan | |
puts 'white on green'.white_on_green | |
puts 'white on magenta'.white_on_magenta | |
puts 'white on red'.white_on_red |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment