Created
October 14, 2011 09:23
-
-
Save cpetschnig/1286665 to your computer and use it in GitHub Desktop.
Show Term::ANSIColor effects
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
# Show Term::ANSIColor effects | |
(Term::ANSIColor.methods - Module.methods).sort.each{|x| print "#{x}: ".ljust(15); begin; puts Term::ANSIColor.send(x, 'foo bar'); rescue; puts 'error'; end } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment