Several friends have tested color-block on Windows, Linux and Apple Mac.
require 'color-block'
include ColorBlock
color( :blue ) { "everything in this block is blue!" }
color( :white, :blue ) do
puts "now everything is white on blue!"
color( :green, :black ) { "nesting is supported" }
end
color( :white, :black, :bold ) { "third parameter to specify :bold or :dim" }
No comments:
Post a Comment