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 rows
          @models.each_with_index.map do |model, row_index|
            if model == :separator
              :separator
            else
              row(model).flatten.each_with_index.map do |value, column_index|
                cell_content value, model, row_index, column_index
              end
            end
          end
        end
def rows @models . each_with_index . map do | model , row_index | if model == :separator :separator else row ( model ) . flatten . each_with_index . map do | value , column_index | cell_content value , model , row_index , column_index end end end 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 .
options The options hash.
options The options hash .
options
:title The title for this table.
: title The title for this table .