| 1 | package TOML::XS::Document; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | =encoding utf-8 | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | TOML::XS::Document - Object representation of a L<TOML|https://toml.io> document | ||
| 11 | |||
| 12 | =head1 SYNOPSIS | ||
| 13 | |||
| 14 | See L<TOML::XS>. | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | Instances of this class represent a parse of a TOML document. | ||
| 19 | |||
| 20 | This class is not directly instantiable. | ||
| 21 | |||
| 22 | =head1 METHODS | ||
| 23 | |||
| 24 | =head2 $hashref = I<OBJ>->to_struct() | ||
| 25 | |||
| 26 | Returns a hash reference that represents the parsed TOML document. | ||
| 27 | |||
| 28 | If the read of the TOML structure encounters a malformed data point | ||
| 29 | an exception is thrown. As of now that exception is a simple character string | ||
| 30 | that includes a L<JSON pointer|https://tools.ietf.org/html/rfc6901> | ||
| 31 | to the problematic data point. | ||
| 32 | |||
| 33 | =cut | ||
| 34 | |||
| 35 | 1; |