Git-Wrapper
    
    
  
  
  
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/;
( run in 0.260 second using v1.01-cache-2.11-cpan-5467b0d2c73 )