Acme-Github-Test

 view release on metacpan or  search on metacpan

lib/Acme/Github/Test.pm  view on Meta::CPAN

=head1 METHODS

=over 4

=item * new()

This method initializes the object.  It can take a list of hash keys and values and store them. Returns
the initialized L<Acme::Github::Test> object.

=item * freep()

This method prints the string scalar "Freep!" on standard out.  It takes no input values. Returns a true
value.

=item * frobulate()

Takes an optional scalar value as input. The value '42' is the default value for this method. Returns the
passed value or the default. (That means if you pass 0 or some other untrue scalar value, the return value 
will be false.)

=back

=head1 AUTHOR

Mark Allen C<< <mallen@cpan.org> >>

=head1 SEE ALSO

=over 4

=item * https://github.com/mrallen1/Acme-Github-Test

=item * https://speakerdeck.com/mrallen1/intro-to-git-for-the-perl-hacker

=back

=head1 LICENSE

Copyright (c) 2012 by Mark Allen

This library is free software; you can redistribute it and/or modify it
under the terms of the Perl Artistic License (version 1) or the GNU 
Public License (version 2)

=cut

package Acme::Github::Test 0.03 {

  our $VERSION = '0.03';

  sub new {
      my $class = shift;
      my @options = @_;
      my $self = { @options };
      return bless $self, $class
  }

  sub freep {
      my $self = shift;

      say "Freep!";
  }

  sub frobulate {
      my $self = shift;
      my $quux = shift // 42;

      say "$quux has been frobulated!";
      return $quux;
  }
}

1;



( run in 2.087 seconds using v1.01-cache-2.11-cpan-b85c58fdc1d )