X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FAutobox%2FCode.pm;h=0dabc535627e405f8017908bffee26aabb3ae235;hb=7dad276528d940b1475e55f8acfdc9414ba1f6bc;hp=f58b9a77e33dd1c1ffb7de8439d4295a395de35e;hpb=5f654d8ec893246d215ae8a3b0fa9b467d50b3b9;p=gitmo%2FMoose-Autobox.git diff --git a/lib/Moose/Autobox/Code.pm b/lib/Moose/Autobox/Code.pm index f58b9a7..0dabc53 100644 --- a/lib/Moose/Autobox/Code.pm +++ b/lib/Moose/Autobox/Code.pm @@ -1,7 +1,8 @@ package Moose::Autobox::Code; use Moose::Role 'with'; +use Moose::Autobox; -our $VERSION = '0.01'; +our $VERSION = '0.02'; with 'Moose::Autobox::Ref'; @@ -31,4 +32,78 @@ sub conjoin { return sub { $f->(@_) && $f2->(@_) } } -1; \ No newline at end of file +#sub dump { + #my ($self) = @_; + #require Data::Dump::Streamer; + #return Data::Dump::Streamer::Dump($self)->Out(); +#} + +1; + +__END__ + +=pod + +=head1 NAME + +Moose::Autobox::Code - the Code role + +=head1 SYNOPOSIS + + use Moose::Autobox; + use autobox; + + my $adder = sub { $_[0] + $_[1] }; + my $add_2 = $adder->curry(2); + + $add_2->(2); # returns 4 + +=head1 DESCRIPTION + +This is a role to describe operations on the Code type. + +=head1 METHODS + +=over 4 + +=item B + +=item B + +=item B + +=item B + +=item B + +This will take a list of C<@subs> and compose them all into a single +subroutine where the output of one sub will be the input of another. + +=back + +=over 4 + +=item B + +=back + +=head1 BUGS + +All complex software has bugs lurking in it, and this module is no +exception. If you find a bug please either email me, or add the bug +to cpan-RT. + +=head1 AUTHOR + +Stevan Little Estevan@iinteractive.comE + +=head1 COPYRIGHT AND LICENSE + +Copyright 2006 by Infinity Interactive, Inc. + +L + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut