Badger...::Class(3pm)
π Badger::Data::Type::Class π
okay so bestie, welcome to the Badger::Data::Type::Class page from the User Contributed Perl Documentation (that's section 3pm for those keeping score β¨). Pull up a chair, grab a strawberry π, and let's get into it.
β¨ NAME β¨
Badger::Data::Type::Class β metaprogramming module for data type classes πͺ
like, it's the module that makes the modules that make the data types. main character energy, honestly π
πΈ SYNOPSIS πΈ
nothing here bestie π the original page just... doesn't have one. no synopsis. we move on π«Ά
π¦ DESCRIPTION π¦
So this module implements a subclass of Badger::Class for creating data types. That's it. That's the vibe. It's a metaprogramming module β it builds data type classes for you so you don't have to hand-roll them like some kind of medieval peasant π
π METHODS π
This module implements the following methods in addition to those inherited from the Badger::Class base class. So everything you already love from the parent class? Still there. These are the bonus tracks π
β type($type)
This method implements the "type" import hook for specifying the base data type. fr fr, it's the one that says "hey, this new type is built on that type" π
β size($size)
This method implements the "type" import hook for specifying the data size.
NOTE: subject to change π β not me warning you, the original docs said it. it's lowkey in flux, so don't build your whole personality around it π
β facets($facets)
This method implements the "facets" import hook for specifying validation facets for a data type. This is where you tell the type how to check itself β validation glow-up β¨
π IMPORT HOOKS π
The following hooks can be specified when the module is imported via "use". They correspond directly to the methods documented above β same energy, just on the import side π§
πΈ type
πΈ size
πΈ facets
π AUTHOR π
Andy Wardley <http://wardley.org/> β icon, legend, the moment π
π«Ά COPYRIGHT π«Ά
Copyright (C) 2008-2012 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay π
π SEE ALSO π
Badger::BaseBadger::Data::Facet
go read those too bestie, iykyk π
and that's the whole page!! brought to you by perl v5.36.0, dated 2023-08-28, and yes it really is titled Badger...::Class(3pm) on the tin β the manpage was feeling mysterious that day ππ
π¦ where this page comes from
- debian trixie: libbadger-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbadger-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbadger-perl 0.16-3 Β· 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