Test::File::ShareDir::Object::Inc(3pm)

Test::File::ShareDir::Object::Inc3pm

Shared tempdir object code to inject into @inc

Usage

    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;

Version

version 1.001002

Overview

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

Methods

"add_to_inc"

DEPRECATED: Use "register" instead.

"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"

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10–11
  4. 12–13

Author

Kent Fredric <[email protected]>

From libtest-file-sharedir-perl 1.001002-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.