Data::...::Base(3pm)

πŸ“¦
version 0.35 Β· 2 versions
  • 0.35 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.35 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Data::...::Base(3pm) πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation for this lil gem. yes the header abbreviates it, but the real name is Data::Phrasebook::Loader::Base and she is the base loader plugin class. πŸ‘‘


✨ NAME ✨

Data::Phrasebook::Loader::Base β€” the base loader plugin class, fr fr. πŸŽ€


🌸 SYNOPSIS 🌸

$class->new( %attributes );

that's it. that's the whole vibe check. πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

Data::Phrasebook::Loader::Base is lowkey the mom friend of the group β€” she acts as a base class for phrasebook plugins. she doesn't do the work herself, she just provides the structure so her subclasses can pop off. 🌈


🫢 CONSTRUCTOR 🫢

πŸ“ new

new instantiates the plugin object, creating a blessed hash of any attributes you pass in as arguments. so basically you hand her a lil bag of attributes and she hands you back a blessed hash. iconic behavior honestly. ✨


πŸ‘‘ INHERITABLE METHODS πŸ‘‘

πŸ’œ load

load is an abstract method here. meaning: she will not do it for you, bestie. you must define your own in your subclass. it loads the phrasebook. no cap. πŸ“š

πŸ’œ get

get is also an abstract method here. again β€” you must define your own in your subclass. it gets the phrase. yes she's making you do your own homework, it's giving tough love. 😭

πŸ’œ dicts

dicts is an abstract method here too. define your own in your subclass. it returns the list of dictionaries available. πŸ—‚οΈ

πŸ’œ keywords

keywords is an abstract method here (seeing the pattern yet?). define your own in your subclass. it returns the list of keywords available. πŸ”‘

πŸ’œ class

class returns the current class of loader. short, sweet, slays. πŸ’…

quick reminder bestie: load, get, dicts and keywords are all abstract here β€” if you don't override them in your subclass, nothing's gonna happen for you. that's not a bug, that's the design. 🚨

🌟 SEE ALSO 🌟

  • Data::Phrasebook
  • Data::Phrasebook::Loader

go read those next, iykyk. πŸ¦‹


πŸŽ€ SUPPORT πŸŽ€

please see the README file. that's where the support tea is. 🍡


πŸ’– AUTHOR πŸ’–

Barbie, <barbie@cpan.org>
for Miss Barbell Productions <http://www.missbarbell.co.uk>.

Copyright (C) 2004-2013 Barbie for Miss Barbell Productions.

This distribution is free software; you can redistribute it and/or
modify it under the Artistic License v2.

so yeah β€” free software, Artistic License v2, redistribute and/or modify as you please. periodt. πŸ’…


and that's a wrap on this page from perl v5.36.0, dated 2022-11-19, served up under the Data::...::Base(3pm) header. mwah, go write your subclass bestie 🫢🌸