lib/ig_markets/cli/tables/table.rb
def table
          Terminal::Table.new(title: @title, headings: headings, rows: rows).tap do |t|
            Array(right_aligned_columns).each do |column|
              t.align_column column, :right
            end
          end
        end
# 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 table
          Terminal::Table.new(title: @title, headings: headings, rows: rows).tap do |t|
            Array(right_aligned_columns).each do |column|
              t.align_column column, :right
            end
          end
        end
def table Terminal :: Table . new ( title : @title , headings : headings , rows : rows ) . tap do | t | Array ( right_aligned_columns ) . each do | column | t . align_column column , :right 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 .