Class HighLine::SampleColorScheme
In: lib/highline/color_scheme.rb
Parent: ColorScheme

A sample ColorScheme.

Methods

new  

Public Class methods

Builds the sample scheme with settings for :critical, :error, :warning, :notice, :info, :debug, :row_even, and :row_odd colors.

[Source]

# 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

[Validate]