Badger...::Class(3pm)

πŸ“¦
version 0.16 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu resolute

πŸ’– 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 (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::Base
  • Badger::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