Class: Configs::Console
Overview
Console color and formatting configuration.
Handles TrueColor support, ANSI 16-color fallback, and stores per-type and per-symbol color mappings.
Defined Under Namespace
Classes: Color
Instance Attribute Summary collapse
-
#colors ⇒ Hash{Class,Symbol => Configs::Console::Color}
A hash mapping classes and symbolic keys to Color objects.
-
#max_depth ⇒ Integer
Returns the maximum depth allowed for recursive object printing.
-
#tab_width ⇒ Integer
Returns the number of spaces used for indentation when printing objects.
-
#true_color ⇒ Boolean
Whether TrueColor (24-bit RGB) output should be used.
-
#variable_limit ⇒ Integer
Returns the maximum number of variables allowed before summary mode is used.
Instance Method Summary collapse
-
#initialize ⇒ Configs::Console
constructor
Initializes default color mappings for built-in Ruby types and log symbols.
Constructor Details
#initialize ⇒ Configs::Console
Initializes default color mappings for built-in Ruby types and log symbols.
600 601 |
# File 'docs/000_a_root.rb', line 600 def initialize end |
Instance Attribute Details
#colors ⇒ Hash{Class,Symbol => Configs::Console::Color}
A hash mapping classes and symbolic keys to Color objects.
533 534 535 |
# File 'docs/000_a_root.rb', line 533 def colors @colors end |
#max_depth ⇒ Integer
Returns the maximum depth allowed for recursive object printing.
519 520 521 |
# File 'docs/000_a_root.rb', line 519 def max_depth @max_depth end |
#tab_width ⇒ Integer
Returns the number of spaces used for indentation when printing objects.
514 515 516 |
# File 'docs/000_a_root.rb', line 514 def tab_width @tab_width end |
#true_color ⇒ Boolean
Whether TrueColor (24-bit RGB) output should be used.
529 530 531 |
# File 'docs/000_a_root.rb', line 529 def true_color @true_color end |
#variable_limit ⇒ Integer
Returns the maximum number of variables allowed before summary mode is used.
525 526 527 |
# File 'docs/000_a_root.rb', line 525 def variable_limit @variable_limit end |