class
Phase::MultiIndexable::Formatter::Settings::ColorConverter
- Phase::MultiIndexable::Formatter::Settings::ColorConverter
- Reference
- Object
Defined in:
multi_indexable/formatter/settings.crConstant 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
- .from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : Symbol | Colorize::ColorRGB
- .to_yaml(value : Symbol, yaml : YAML::Nodes::Builder)
- .to_yaml(v : Colorize::ColorRGB, yaml : YAML::Nodes::Builder)
Class Method Detail
def self.from_yaml(ctx : YAML::ParseContext, node : YAML::Nodes::Node) : Symbol | Colorize::ColorRGB
#