Git-Wrapper
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Git/Wrapper.pm view on Meta::CPAN
# show you them.
elsif ( ! ref $arg ) { $args = { dir => $arg } }
else { die "Single arg must be hashref, scalar, or stringify-able object" }
}
else {
my( $dir , %opts ) = @_;
$dir = "$dir" if blessed $dir; # we can stringify it for you wholesale
$args = { dir => $dir , %opts }
}
my $self = bless $args => $class;
die "usage: $class->new(\$dir)" unless $self->dir;
return $self;
}
sub AUTOLOAD {
my $self = shift;
(my $meth = our $AUTOLOAD) =~ s/.+:://;
lib/Git/Wrapper/Exception.pm view on Meta::CPAN
package Git::Wrapper::Exception;
# ABSTRACT: Exception class for Git::Wrapper
$Git::Wrapper::Exception::VERSION = '0.048';
use 5.006;
use strict;
use warnings;
sub new { my $class = shift; bless { @_ } => $class }
use overload (
q("") => '_stringify',
fallback => 1,
);
sub _stringify {
my ($self) = @_;
my $error = $self->error;
return $error if $error =~ /\S/;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.887 second using v1.00-cache-2.02-grep-82fe00e-cpan-a086c87fca4 )