Description

class Axlsx::CellSerializer

The Cell Serializer class contains the logic for serializing cells based on their type.

Serializes cells that are type array formula

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

Serializes cells that are type boolean

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

serializes cells that are type date

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

Serializes cells that are type float

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

Serializes cells that are type formula

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

Serializes cells that are type inline_string

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

Serializes cells that are type integer

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

serializes cells that are type iso_8601

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

Serializes cells that are of the type richtext

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String)

    The string the serialized content will be appended to.

builds an xml text run based on this cells attributes.

Parameters:

  • str (String) (defaults to: '')

    The string instance this run will be concated to.

Serializes cells that are type string

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

Serializes cells that are type time

Parameters:

  • cell (Cell)

    The cell that is being serialized

  • str (String) (defaults to: '')

    The string the serialized content will be appended to.

Calls the proper serialization method based on type.

Parameters:

  • row_index (Integer)

    The index of the cell's row

  • column_index (Integer)

    The index of the cell's column

  • str (String) (defaults to: '')

    The string to apend serialization to.

CellSerializer is referenced in 0 repositories