Class: HighLine::SampleColorScheme
- Inherits:
-
ColorScheme
- Object
- ColorScheme
- HighLine::SampleColorScheme
- Defined in:
- lib/highline/color_scheme.rb
Overview
A sample ColorScheme.
Instance Method Summary collapse
-
#initialize(h = nil) ⇒ SampleColorScheme
constructor
Builds the sample scheme with settings for
:critical,:error,:warning,:notice,:info,:debug,:row_even, and:row_oddcolors.
Methods inherited from ColorScheme
#[], #[]=, #include?, #load_from_hash
Constructor Details
#initialize(h = nil) ⇒ SampleColorScheme
Builds the sample scheme with settings for :critical, :error, :warning, :notice, :info, :debug, :row_even, and :row_odd colors.
104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/highline/color_scheme.rb', line 104 def initialize( h = nil ) scheme = { :critical => [ :yellow, :on_red ], :error => [ :bold, :red ], :warning => [ :bold, :yellow ], :notice => [ :bold, :magenta ], :info => [ :bold, :cyan ], :debug => [ :bold, :green ], :row_even => [ :cyan ], :row_odd => [ :magenta ] } super(scheme) end |