Class | HighLine::SampleColorScheme |
In: |
lib/highline/color_scheme.rb
|
Parent: | ColorScheme |
A sample ColorScheme.
Builds the sample scheme with settings for :critical, :error, :warning, :notice, :info, :debug, :row_even, and :row_odd colors.
# File lib/highline/color_scheme.rb, line 106 106: def initialize( h = nil ) 107: scheme = { 108: :critical => [ :yellow, :on_red ], 109: :error => [ :bold, :red ], 110: :warning => [ :bold, :yellow ], 111: :notice => [ :bold, :magenta ], 112: :info => [ :bold, :cyan ], 113: :debug => [ :bold, :green ], 114: :row_even => [ :cyan ], 115: :row_odd => [ :magenta ] 116: } 117: super(scheme) 118: end