Data::TableReader::Decoder::Mock(3pm)

Data::TableReader::Decoder::Mock3pm

Decoder that returns supplied data without decoding anything

Usage

    decoder => {
      CLASS => 'Mock',
      datasets => [
        [ # Data Set 0
           [ 1, 2, 3, 4, 5 ],
           ...
        ],
        [ # Data Set 1
           [ 1, 2, 3, 4, 5 ],
           ...
        ],
      ]
    }

or

    decoder => {
      CLASS => 'Mock',
      table => [
         [ 1, 2, 3, 4, 5 ],
         ...
      ],
    }

This doesn't actually decode anything; it just returns verbatim rows of data from arrayrefs that you supply. You can provide one or multiple tables. The 'table' constructor parameter is an alias for "datasets[0]".

Version

version 0.021

Attributes

See attributes from parent class: Data::TableReader::Decoder.

datasets

The verbatim data which will be returned by the iterator. This can be an array of tables, or one table itself. A table must be composed of arrayrefs, and the cells of the table cannot themselves be arrayrefs.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

Michael Conrad <[email protected]>

From libdata-tablereader-perl 0.021-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.