mirror of
https://codeberg.org/scip/Config-General.git
synced 2025-12-16 20:21:01 +01:00
-
git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@72 be1acefe-a474-0410-9a34-9b3221f2030f
This commit is contained in:
24
t/PathObject.pm
Normal file
24
t/PathObject.pm
Normal file
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# Pathobject fake module to test Config::General
|
||||
# without the need to install Path::Class::File module.
|
||||
#
|
||||
# Submitted by Matt S Trout, Copyright (c) 2009 Matt S Trout.
|
||||
|
||||
|
||||
package PathObject;
|
||||
|
||||
use overload ('""' => 'stringify');
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
my $self = {};
|
||||
bless $self, $class;
|
||||
return $self;
|
||||
}
|
||||
|
||||
sub stringify {
|
||||
my ($self) = @_;
|
||||
return "t/test.rc";
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user