module

Tablo::Config

The Config module define global getters and setters, to be used as default values for all class instantiation parameters.

Constants

STYLER_TTY_ONLY = true

Checks whether styling is allowed when output is redirected.

  • true : styling not allowed (Default)
  • false : styling allowed
TERMINAL_CAPPED_WIDTH = false

Checks whether terminal size is used as table total width when packing is called without a specified width.

  • true : table width is capped to terminal size
  • false : terminal size is ignored (Default)

Class methods

styler_tty_only=(styler_tty_only : Bool)

see STYLER_TTY_ONLY

Source
styler_tty_only?

see STYLER_TTY_ONLY

Source
terminal_capped_width=(terminal_capped_width : Bool)

see TERMINAL_CAPPED_WIDTH

Source
terminal_capped_width?

see TERMINAL_CAPPED_WIDTH

Source

Nested types