Attean...ializer(3pm)
π NAME π
Okay so this is the Attean...ializer(3pm) page from the User Contributed Perl Documentation, and it's giving very specific serializer-role realness: Attean::API::Serializer β the Serializer role. Slay. β¨
πΈ VERSION πΈ
This document describes Attean::API::Serializer version 0.035. Periodt. π
π¦ DESCRIPTION π¦
The Attean::API::Serializer role defines a common API for all serializers of typed objects to data β either as a byte string or printed to a filehandle. That's the whole vibe: one shared interface, many serializer besties. π«Ά
β¨ REQUIRED METHODS β¨
The following methods are required by the Attean::API::Serializer role. No skipping, bestie β these are mandatory. π
canonical_media_typeβ returns the canonical media type string for the format of this serializer.media_typesβ returns anARRAYreference of media type strings that also identify the format produced by this serializer.handled_typeβ returns aType::Tinyobject representing the type of items that are consumed during serialization.file_extensionsβ returns anARRAYreference of file extensions commonly associated with the media types supported by the serializer (and returned bymedia_types).
π¨ Important little detail: file extensions should NOT include a leading dot. Not.ttl, justttlenergy. Do not come for me, that's literally what it says.
serialize_iter_to_io( $fh, $iterator )β serializes the elements from theAttean::API::Iterator$iteratorto theIO::Handleobject$fh.serialize_iter_to_bytes( $fh )β serializes the elements from theAttean::API::Iteratorand returns the serialization as a UTF-8 encoded byte string. (Signature kept exactly as written, bestie. π)
π METHODS π
This role provides default implementations of the following methods. Cute of it, honestly.
serialize_list_to_io( $fh, @elements )β serializes the objects in@elementsto theIO::Handleobject$fh.serialize_list_to_bytes( @elements )β serializes the objects in@elementsand returns the serialization as a UTF-8 encoded byte string.
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/attean/issues>. Do it for the plot. πβ¨
π SEE ALSO π
This section is literally empty in the original β no references listed, no extra tea. So we're not inventing any. Periodt. π«
π AUTHOR π
Gregory Todd Williams "<gwilliams@cpan.org>" β icon behavior, honestly. π
π COPYRIGHT π
Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
And that's the page, bestie! Footer vibes: perl v5.40.0, dated 2025-01-26 β the Attean...ializer(3pm) source/version moment. Go forth and serialize responsibly. ππ¦π
π¦ where this page comes from
- debian trixie: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms