Kent Fredric > Git-PurePerl-Walker > Git::PurePerl::Walker::Role::Method

Download:
Git-PurePerl-Walker-0.002000.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.002000   Source  

NAME ^

Git::PurePerl::Walker::Role::Method - A method for traversing a git repository

VERSION ^

version 0.002000

REQUIRES METHODS ^

current

        my $commit = $object->current;

Should return a Git::PurePerl::Object::Commit

has_next

        if ( $object->has_next ) {

        }

Should return true if ->next will expose a previously unseen object.

next

        my $next_object = $object->next;

Should internally move to the next object, and return that next object.

peek_next

        my $next_object = $object->peek_next;

The same as "next" except internal position should not change.

reset

        $object->reset;

Should reset the internal position to some position so that calling $object->current returns the first result again.

INHERITED METHODS ^

for_repository

Git::PurePerl::Walker::Role::HasRepo->for_repository( $repo )

clone

MooseX::Clone->clone( %params )

_repo

Git::PurePerl::Walker::Role::HasRepo->_repo( $repo )

CONSUMED ROLES ^

Git::PurePerl::Walker::Role::HasRepo

Git::PurePerl::Walker::Role::HasRepo

AUTHOR ^

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Kent Fredric <kentnl@cpan.org>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: