MooseX...:Engine(3pm)
β¨ NAME β¨
okay so this is the manual page for MooseX::Storage::Engine β dropping it in the User Contributed Perl Documentation collection, bestie β and it's the meta-engine that handles collapsing and expanding objects. that's it, that's the whole vibe π
πΈ VERSION πΈ
version 0.53 β¨
π¦ DESCRIPTION π¦
ngl, there really aren't any major user-serviceable parts in here. like, fr fr, it's mostly internals doing internals things π
but β the typical use case, the one you're actually gonna care about, is adding new non-Moose classes to the type registry so they can get serialized. here's the whole thing for DateTime objects, and this assumes a "DateTime" type has already been registered:
MooseX::Storage::Engine->add_custom_type_handler(
'DateTime' => (
expand => sub { DateTime::Format::ISO8601->new->parser_datetime(shift) },
collapse => sub { (shift)->iso8601 },
)
);
ate, honestly. π
π METHODS π
π Accessors
classobjectstorageseen
β¨ API β¨
expand_objectcollapse_object
π ... π
yes the subsection is literally called .... iconic. no notes.
collapse_attributecollapse_attribute_valueexpand_attributeexpand_attribute_valuecheck_for_cycle_in_collapsecheck_for_cycle_in_expansionmap_attributes
π Type Constraint Handlers π
find_type_handler ($type)find_type_handler_for ($name)add_custom_type_handler ($name, %handlers)remove_custom_type_handler ($name)
π«Ά SUPPORT π«Ά
got bugs? bestie, we got a whole tracker for that:
- Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Storage> (or bug-MooseX-Storage@rt.cpan.org <mailto:bug-MooseX-Storage@rt.cpan.org>).
there's also a mailing list for users of this distribution, at <http://lists.perl.org/list/moose.html>.
and there's an irc channel for users of this distribution too, at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>. come hang out π
π AUTHORS π
- Chris Prather <chris.prather@iinteractive.com>
- Stevan Little <stevan.little@iinteractive.com>
- ΧΧΧΧ Χ§ΧΧ'ΧΧ (Yuval Kogman) <nothingmuch@woobling.org>
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2007 by Infinity Interactive, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay that's the whole page, you made it, I'm so proud of you π this was put together with perl v5.36.0 on 2022-10-16, and that gorgeous first line was the MooseX...:Engine(3pm) header from the User Contributed Perl Documentation set. mwah. slay. periodt. π
π¦ where this page comes from
- ubuntu noble: libmoosex-storage-perl 0.53-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-storage-perl 0.53-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-storage-perl 0.53-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms