class HexaPDF::Document::Layout::CellArgumentCollector

Parent

This helper class is used by Layout#table_box to allow specifying the keyword arguments used when converting cell data to box instances.

Constants

ArgumentInfo

Stores a single keyword argument definition for a number of rows/columns.

Attributes

argument_infos[R]

Returns all stored ArgumentInfo instances.

Public Class Methods

new(number_of_rows, number_of_columns)

Creates a new instance, providing the number of rows and columns of the table.

Public Instance Methods

[]=(rows = 0..-1, cols = 0..-1, args)

Stores the keyword arguments in args for the given 0-based rows and columns which can either be a single number or a range of numbers.

retrieve_arguments_for(row, col)

Retrieves the merged keyword arguments for the cell in row and col.

Earlier defined arguments are overridden by later ones.