class Phase::MultiIndexable::Formatter::Settings::ColorConverter

Defined in:

multi_indexable/formatter/settings.cr

Constant Summary

COLOR_MAP = {"default" => :default, "black" => :black, "red" => :red, "green" => :green, "yellow" => :yellow, "blue" => :blue, "magenta" => :magenta, "cyan" => :cyan, "light_gray" => :light_gray, "dark_gray" => :dark_gray, "light_red" => :light_red, "light_green" => :light_green, "light_yellow" => :light_yellow, "light_blue" => :light_blue, "light_magenta" => :light_magenta, "light_cyan" => :light_cyan, "white" => :white}

NOTE I tried generating this with macros, but nothing was as effective as just hardcoding it.

Class Method Summary

Class Method Detail

def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : Symbol | Colorize::ColorRGB #

[View source]
def self.to_yaml(value : Symbol, yaml : YAML::Nodes::Builder) #

[View source]
def self.to_yaml(v : Colorize::ColorRGB, yaml : YAML::Nodes::Builder) #

[View source]