class TTY::Table::Operation::Wrapped

@api private
A class responsible for wrapping text.

def call(field, row, col)

Other tags:
    Api: - public

Returns:
  • (Array[String]) -

Parameters:
  • col (Integer) --
  • row (Integer) --
  • field (TTY::Table::Field) --
def call(field, row, col)
  column_width = widths[col] || field.width
  Strings.wrap(field.content, column_width)
end

def initialize(widths)

Other tags:
    Api: - public
def initialize(widths)
  @widths  = widths
end