class HexaPDF::Document::Layout::CellArgumentCollector


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



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



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, except for the :cell key which is merged.