Class: Configs::Console

Inherits:
Object show all
Defined in:
docs/000_a_root.rb

Overview

Console color and formatting configuration.

Handles TrueColor support, ANSI 16-color fallback, and stores per-type and per-symbol color mappings.

Author:

  • Logic

Defined Under Namespace

Classes: Color

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Returns:



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.

Returns:

  • (Integer) —

    the indent limit, which determines how deep the object can be printed recursively.



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.

Returns:

  • (Integer) —

    the size of the indent in single spaces.



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.

Returns:

  • (Boolean)


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.

Returns:

  • (Integer) —

    the variable limit, which determines how many instance variables or constants can be printed before falling back to summary mode.



525
526
527
# File 'docs/000_a_root.rb', line 525

def variable_limit
  @variable_limit
end