logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Test::File::ShareDir::Object::Inc - Shared tempdir object code to inject into @INC

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>

Description

       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

       Since1.001000"clear"
           $instance->clear();

       Prevents this "Inc" from being used.

       Presently, this removes the "tempdir" from @INC

       Since1.001000

Name

       Test::File::ShareDir::Object::Inc - Shared tempdir object code to inject into @INC

Synopsis

           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

See Also