Export...erator(3pm)

πŸ“¦
version 0.114 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Exporter::Declare::Export::Generator β€” bestie, this is the export class for exports that should be generated when imported πŸ’– (yes, generated on the fly, main character behavior fr)

(also hi, this page lives in the User Contributed Perl Documentation section, 3pm, iykyk πŸŽ€)


🌸 DESCRIPTION 🌸

Okay so. Export class for exports that should be generated when imported. That's it, that's the whole vibe β€” it's the class that handles exports that don't exist yet until somebody imports them. Lowkey magical. ✨


πŸ’… OVERRIDEN METHODS πŸ’…

(not a typo, that's literally how it's spelled, don't come for me πŸ™ˆ)

  • $class->new( $ref, $ref, exported_by => $package, type => $type, %data ) β€” the constructor, and no cap: you must specify the type as 'sub' or 'variable'. Those are your only two options bestie, pick one. πŸ‘‘
  • $export->inject( $package, $name, @args ) β€” calls generate() with @args to create a generated export. Then the new export gets injected. The way it generates then injects… obsessed. πŸ’‰

πŸ¦‹ ADDITIONAL METHODS πŸ¦‹

  • $new = $export->generate( $import_class, @args ) β€” generates a new export object. Fresh out the oven, brand new, slay. πŸ“
  • $type = $export->type() β€” returns the type of object to be generated (sub or variable). Just a lil vibe check on what we're making. 🌈

πŸ‘‘ AUTHORS πŸ‘‘

Chad Granum exodist7@gmail.com


Copyright (C) 2010 Chad Granum

Exporter-Declare is free software; Standard perl licence.

Exporter-Declare is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.

🫢 fr fr, that's the legal bit, don't skip it β€” "useful but no promises" is the whole energy.

okay bye bestie, this was perl v5.34.0, dated 2022-06-13, and it ate πŸ’…βœ¨ no notes, periodt 🌸

πŸ“¦ where this page comes from