Class: HighLine::SampleColorScheme
- Inherits:
-
ColorScheme
- Object
- ColorScheme
- HighLine::SampleColorScheme
- Defined in:
- lib/highline/color_scheme.rb
Overview
A sample ColorScheme.
Constant Summary collapse
- SAMPLE_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] }.freeze
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_odd
colors.
Methods inherited from ColorScheme
#[], #[]=, #definition, #include?, #keys, #load_from_hash, #to_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.
147 148 149 |
# File 'lib/highline/color_scheme.rb', line 147 def initialize(_h = nil) super(SAMPLE_SCHEME) end |