Module Wirble::Colorize
In: lib/wirble.rb  (CVS)
lib/wirble.rb  (CVS)

Add color support to IRB.

Methods

Classes and Modules

Module Wirble::Colorize::Color
Module Wirble::Colorize::Tokenizer

Constants

DEFAULT_COLORS = { # delimiter colors :comma => :blue, :refers => :blue, # container colors (hash and array) :open_hash => :green, :close_hash => :green, :open_array => :green, :close_array => :green, # object colors :open_object => :light_red, :object_class => :white, :object_addr_prefix => :blue, :object_line_prefix => :blue, :close_object => :light_red, # symbol colors :symbol => :yellow, :symbol_prefix => :yellow, # string colors :open_string => :red, :string => :cyan, :close_string => :red, # misc colors :number => :cyan, :keyword => :green, :class => :light_green, :range => :red, }   Default Wirble color scheme.
TESTING_COLORS = { :comma => :red, :refers => :red, :open_hash => :blue, :close_hash => :blue, :open_array => :green, :close_array => :green, :open_object => :light_red, :object_class => :light_green, :object_addr => :purple, :object_line => :light_purple, :close_object => :light_red, :symbol => :yellow, :symbol_prefix => :yellow, :number => :cyan, :string => :cyan, :keyword => :white, :range => :light_blue, }   Fruity testing colors.
DEFAULT_COLORS = { # delimiter colors :comma => :blue, :refers => :blue, # container colors (hash and array) :open_hash => :green, :close_hash => :green, :open_array => :green, :close_array => :green, # object colors :open_object => :light_red, :object_class => :white, :object_addr_prefix => :blue, :object_line_prefix => :blue, :close_object => :light_red, # symbol colors :symbol => :yellow, :symbol_prefix => :yellow, # string colors :open_string => :red, :string => :cyan, :close_string => :red, # misc colors :number => :cyan, :keyword => :green, :class => :light_green, :range => :red, }   Default Wirble color scheme.
TESTING_COLORS = { :comma => :red, :refers => :red, :open_hash => :blue, :close_hash => :blue, :open_array => :green, :close_array => :green, :open_object => :light_red, :object_class => :light_green, :object_addr => :purple, :object_line => :light_purple, :close_object => :light_red, :symbol => :yellow, :symbol_prefix => :yellow, :number => :cyan, :string => :cyan, :keyword => :white, :range => :light_blue, }   Fruity testing colors.

External Aliases

output_value -> non_color_output_value
non_color_output_value -> output_value

Public Class methods

Colorize the results of inspect

Colorize the results of inspect

Return a string with the given color.

Return a string with the given color.

Get current color map

Get current color map

Set color map to hash

Set color map to hash

Disable colorized IRB results.

Disable colorized IRB results.

Enable colorized IRB results.

Enable colorized IRB results.

Public Instance methods

non_color_output_value()

Alias for output_value

output_value()

[Validate]