Methods

HighLine::SampleColorScheme

A sample ColorScheme.

Public Class Methods

new( h = nil ) click to toggle source

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 122
122:     def initialize( h = nil )
123:       scheme = {
124:         :critical => [ :yellow, :on_red  ],
125:         :error    => [ :bold,   :red     ],
126:         :warning  => [ :bold,   :yellow  ],
127:         :notice   => [ :bold,   :magenta ],
128:         :info     => [ :bold,   :cyan    ],
129:         :debug    => [ :bold,   :green   ],
130:         :row_even => [ :cyan    ],
131:         :row_odd  => [ :magenta ]
132:       }
133:       super(scheme)
134:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.