lib/ig_markets/cli/tables/table.rb
# Initializer that takes the array of models to display in this table.
#
# @param [Array] models The array of models.
# @param [Hash] options The options hash.
# @option options [String] :title The title for this table.
Initializer that takes the array of models to display in this table.
Initializer that takes the array of models to display in this table .
def cell_content(value, model, row_index, column_index)
          color = cell_color value, model, row_index, column_index
          content = format_cell_value(value).strip
          color ? ColorizedString[content].colorize(color) : content
        end
def cell_content ( value , model , row_index , column_index ) color = cell_color value , model , row_index , column_index content = format_cell_value ( value ) . strip color ? ColorizedString [ content ] . colorize ( color ) : content end
Initializer that takes the array of models to display in this table.
Initializer that takes the array of models to display in this table .
value
model
row_index
column_index
options The options hash.
options The options hash .
options
:title The title for this table.
: title The title for this table .