Test::F...ect::Inc(3)

✨ NAME ✨

Test::File::ShareDir::Object::Inc β€” Shared tempdir object code to inject into @INC. That's the whole NAME vibe, and this is the Test::F...ect::Inc(3) page from the User Contributed Perl Documentation collection, bestie πŸ’–


πŸŽ€ VERSION πŸŽ€

version 1.001002 β€” that's the version, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the whole group-chat recipe, copied exactly so you can run it without guessing ✨:

use Test::File::ShareDir::Object::Inc;

my $inc = Test::File::ShareDir::Object::Inc->new();

$inc->tempdir() # add files to here

$inc->module_tempdir() # or here

$inc->dist_tempdir() # or here

$inc->add_to_inc;

🌸 DESCRIPTION 🌸

Ngl, this class doesn't do very much on its own.

It simply exists to facilitate tempdir creation, and the injection of those tempdir's into @INC. That's the assignment, and it ate. πŸ’…


πŸ”₯ METHODS πŸ”₯

Okay so these are the moves this object knows about. Main character energy only ✨

🚨 add_to_inc β€” the deprecated one

DEPRECATED: Use register instead.

This is the old door, bestie. It's still a method, but the page says to use register instead β€” periodt.

register ✨

$instance->register;

Allows this Inc to be used.

Presently, this injects the associated tempdir into @INC.

Since 1.001000

clear 🧹

$instance->clear();

Prevents this Inc from being used.

Presently, this removes the tempdir from @INC.

Since 1.001000


🌈 ATTRIBUTES 🌈

  • tempdir β€” A path to a tempdir of some description.
  • module_tempdir β€” The module ShareDir base directory within the tempdir.
  • dist_tempdir β€” The dist ShareDir base directory within the tempdir.

πŸ‘‘ AUTHOR πŸ‘‘

Kent Fredric <kentnl@cpan.org> β€” iconic, honestly 🫢


This software is copyright (c) 2017 by Kent Fredric <kentnl@cpan.org>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


K bye bestie 🫢 β€” this page is Test::F...ect::Inc(3), brought to you by perl v5.42.0, dated 2017-03-03. Slay. πŸ’…πŸŽ€

πŸ“¦ where this page comes from