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::TempDirObject - Internal Object to make code simpler.

Author

       Kent Fredric <kentnl@cpan.org>

Methods

new
       Creates a new instance of this object.

Name

       Test::File::ShareDir::TempDirObject - Internal Object to make code simpler.

Synopsis

           my $object = $class->new({
               -root => 'foo', # optional
               -share => {
                   -module => {
                       'baz' => 'dir',
                   },
                   -dist => {
                       'Task-baz' => 'otherdir',
                   },
               },
           });

           # installs a sharedir for 'baz' by copying 'foo/dir'
           $object->_install_module('baz');

           # installs a shardir for distribution 'Task-baz' by copying 'foo/otherdir'
           $object->_install_dist('Task-baz');

           # add to @INC
           unshift @INC, $object->_tempdir->stringify;

Version

       version 1.001002

See Also