module

Tablo::Config::Defaults

Default values for Table and/or Column initialization, with associated getters and setters.

Constants

BODY_ALIGNMENT = nil

A default value of nil makes alignment dependent on data source type

BODY_FORMATTER = DEFAULT_FORMATTER

(see DEFAULT_FORMATTER)

BODY_STYLER = DEFAULT_STYLER

(see DEFAULT_STYLER)

BODY_WRAP = nil

Defaut wrapping value for multiline bodies
nil = no limit, n = limit to n lines

BORDER_DEFINITION = Border::PreSet::Ascii

Default value for Border definition

BORDER_STYLER = DEFAULT_STYLER

(see DEFAULT_STYLER)

COLUMN_WIDTH = 12

Defaut column width

FOOTER = Heading.new

Creates an instance of Heading struct with default parameters, where the value attribute is nil, so there is nothing to display

GROUP_ALIGNMENT = DEFAULT_HEADING_ALIGNMENT

(see DEFAULT_HEADING_ALIGNMENT)

GROUP_FORMATTER = DEFAULT_FORMATTER

(see DEFAULT_FORMATTER)

GROUP_STYLER = DEFAULT_STYLER

(see DEFAULT_STYLER)

HEADER_ALIGNMENT = nil

A default value of nil makes alignment dependent on data source type

HEADER_FORMATTER = DEFAULT_FORMATTER

(see DEFAULT_FORMATTER)

HEADER_FREQUENCY = 0

Defaut header frequency (see header_frequency parameter in Table.new)

HEADER_STYLER = DEFAULT_STYLER

(see DEFAULT_STYLER)

HEADER_WRAP = nil

Defaut wrapping value for multiline headers nil = no limit, n = limit to n lines

HEADING_ALIGNMENT = DEFAULT_HEADING_ALIGNMENT

(see DEFAULT_HEADING_ALIGNMENT)

HEADING_FORMATTER = DEFAULT_FORMATTER

(see DEFAULT_FORMATTER)

HEADING_STYLER = DEFAULT_STYLER

(see DEFAULT_STYLER)

LEFT_PADDING = 1

Default left padding

MASKED_HEADERS = false

Defaut value for masked headers

OMIT_GROUP_HEADER_RULE = false

Defaut value for omit_group_header_rule

OMIT_LAST_RULE = false

Defaut value for omit_last_rule
Omitting last rule allows joining of parent and child tables

PADDING_CHARACTER = " "

Default padding character (a String, size 1)

RIGHT_PADDING = 1

Default right padding

ROW_DIVIDER_FREQUENCY = nil

Defaut row divider frequency

SUBTITLE = Heading.new

Creates an instance of Heading struct with default parameters, where the value attribute is nil, so there is nothing to display

TITLE = Heading.new

Creates an instance of Heading struct with default parameters, where the value attribute is nil, so there is nothing to display

TRUNCATION_INDICATOR = "~"

Defaut truncation indicator (a string, size 1)

WRAP_MODE = WrapMode::Word

Defaut wrap mode (see WrapMode)

Class methods

body_alignment

(Default: see BODY_ALIGNMENT)

Source
body_alignment=(body_alignment : Justify | Nil)

(Default: see BODY_ALIGNMENT)

Source
body_formatter

(Default: see BODY_FORMATTER)

Source
body_formatter=(body_formatter : Cell::Data::Formatter)

(Default: see BODY_FORMATTER)

Source
body_styler

(Default: see BODY_STYLER)

Source
body_styler=(body_styler : Cell::Data::Styler)

(Default: see BODY_STYLER)

Source
body_wrap

(Default: see BODY_WRAP)

Source
body_wrap=(body_wrap : Int32 | Nil)

(Default: see BODY_WRAP)

Source
border_definition

(Default: see BORDER_DEFINITION)

Source
border_definition=(border_definition : String | Border::PreSet)

(Default: see BORDER_DEFINITION)

Source
border_styler

Default: see BORDER_STYLER)

Source
border_styler=(border_styler : Border::Styler)

Default: see BORDER_STYLER)

Source
column_width

(Default: see COLUMN_WIDTH)

Source
column_width=(column_width : Int32)

(Default: see COLUMN_WIDTH)

Source
group_alignment

Default: see GROUP_ALIGNMENT)

Source
group_alignment=(group_alignment : Justify)

Default: see GROUP_ALIGNMENT)

Source
group_formatter

Default: see GROUP_FORMATTER)

Source
group_formatter=(group_formatter : Cell::Text::Formatter)

Default: see GROUP_FORMATTER)

Source
group_styler

Default: see GROUP_STYLER)

Source
group_styler=(group_styler : Cell::Text::Styler)

Default: see GROUP_STYLER)

Source
header_alignment

(Default: see HEADER_ALIGNMENT)

Source
header_alignment=(header_alignment : Justify | Nil)

(Default: see HEADER_ALIGNMENT)

Source
header_formatter

Default: see HEADER_FORMATTER)

Source
header_formatter=(header_formatter : Cell::Data::Formatter)

Default: see HEADER_FORMATTER)

Source
header_frequency

(Default: see HEADER_FREQUENCY)

Source
header_frequency=(header_frequency : Int32 | Nil)

(Default: see HEADER_FREQUENCY)

Source
header_styler

Default: see HEADER_STYLER)

Source
header_styler=(header_styler : Cell::Data::Styler)

Default: see HEADER_STYLER)

Source
header_wrap

(Default: see HEADER_WRAP)

Source
header_wrap=(header_wrap : Int32 | Nil)

(Default: see HEADER_WRAP)

Source
heading_alignment

Default: see HEADING_ALIGNMENT)

Source
heading_alignment=(heading_alignment : Justify)

Default: see HEADING_ALIGNMENT)

Source
heading_formatter

Default: see HEADING_FORMATTER)

Source
heading_formatter=(heading_formatter : Cell::Text::Formatter)

Default: see HEADING_FORMATTER)

Source
heading_styler

Default: see HEADING_STYLER)

Source
heading_styler=(heading_styler : Cell::Text::Styler)

Default: see HEADING_STYLER)

Source
left_padding

(Default: see LEFT_PADDING)

Source
left_padding=(left_padding : Int32)

(Default: see LEFT_PADDING)

Source
masked_headers=(masked_headers : Bool)

(Default: see MASKED_HEADERS)

Source
masked_headers?

(Default: see MASKED_HEADERS)

Source
omit_group_header_rule=(omit_group_header_rule : Bool)

(Default: see OMIT_GROUP_HEADER_RULE

Source
omit_group_header_rule?

(Default: see OMIT_GROUP_HEADER_RULE

Source
omit_last_rule=(omit_last_rule : Bool)

Default: see OMIT_LAST_RULE)

Source
omit_last_rule?

Default: see OMIT_LAST_RULE)

Source
padding_character

(Default: see PADDING_CHARACTER)

Source
padding_character=(padding_character : String)

(Default: see PADDING_CHARACTER)

Source
right_padding

(Default: see RIGHT_PADDING)

Source
right_padding=(right_padding : Int32)

(Default: see RIGHT_PADDING)

Source
row_divider_frequency

(Default: see ROW_DIVIDER_FREQUENCY)

Source
row_divider_frequency=(row_divider_frequency : Int32 | Nil)

(Default: see ROW_DIVIDER_FREQUENCY)

Source
subtitle

(Default: see SUBTITLE)

Source
subtitle=(subtitle : Heading)

(Default: see SUBTITLE)

Source
title

(Default: see TITLE)

Source
title=(title : Heading)

(Default: see TITLE)

Source
truncation_indicator

(Default: see TRUNCATION_INDICATOR)

Source
truncation_indicator=(truncation_indicator : String)

(Default: see TRUNCATION_INDICATOR)

Source
wrap_mode

(Default: see WRAP_MODE)

Source
wrap_mode=(wrap_mode : WrapMode)

(Default: see WRAP_MODE)

Source