Badger...inSize(3pm)

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

✨ NAME ✨

Badger::Data::Facet::List::MinSize β€” a whole validation facet whose entire job is checking how big a list is πŸ’…

(ngl bestie, the page header truncates it to Badger...inSize but that's just the pager being cute with the filename β€” the real name is the long one up there ☝️)


πŸŽ€ DESCRIPTION πŸŽ€

okay so listen. This module implements a validation facet β€” like, a little vibe-checker β€” that inspects the size of a list and asserts that it is equal to or above a certain size, measured in terms of the items it contains. So if your list is too smol, this facet is gonna have opinions. 🫢


🌸 METHODS 🌸

This module implements the following method in addition to those it inherits from the Badger::Data::Facet::List, Badger::Data::Facet and Badger::Base base classes. It's giving family tree, it's giving inherited lore πŸ‘‘

validate($list_ref, $type)

This method validates that the size of the list (i.e. the number of elements πŸ’€) passed by reference as the first argument is less than or equal to the pre-defined maximum limit.

not me noticing the DESCRIPTION said "equal to or above a certain size" and this method says "less than or equal to the pre-defined maximum limit" πŸ™ˆ both of those sentences are straight from the source, so I'm handing them to you exactly as written β€” copy the words, don't @ me πŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

Andy Wardley <http://wardley.org/>


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.


🌈 SEE ALSO 🌈

  • Badger::Base
  • Badger::Data::Facet
  • Badger::Data::Facet::List

and that's the whole page, bestie β€” written by Andy Wardley, shipped as part of perl v5.36.0, dated 2023-08-28, under User Contributed Perl Documentation. slay, go validate some lists, periodt πŸ¦‹βœ¨

πŸ“¦ where this page comes from