X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FAutobox%2FItem.pm;h=2772c77d6ccdb32487a8d95e276eba27fdeb844c;hb=ea4e64bf393378b8e16896f6618a98fda24cb2fc;hp=00b40b651cf77dedbdc4c1db4ad40015f82cae29;hpb=31d40d7362f4154746428525561af751208b0805;p=gitmo%2FMoose-Autobox.git diff --git a/lib/Moose/Autobox/Item.pm b/lib/Moose/Autobox/Item.pm index 00b40b6..2772c77 100644 --- a/lib/Moose/Autobox/Item.pm +++ b/lib/Moose/Autobox/Item.pm @@ -1,10 +1,18 @@ package Moose::Autobox::Item; use Moose::Role 'requires'; -our $VERSION = '0.01'; +our $VERSION = '0.02'; requires 'defined'; +sub dump { + my $self = shift; + require Data::Dumper; + return Data::Dumper::Dumper($self); +} + +*perl = \&dump; + 1; __END__ @@ -15,12 +23,37 @@ __END__ Moose::Autobox::Item - the Item role -=head1 SYNOPOSIS +=head1 DESCRIPTION - use Moose::Autobox; - use autobox; +This is the root of our role hierarchy. -=head1 DESCRIPTION +=head1 METHODS + +=over 4 + +=item B + +=item B + +Calls Data::Dumper::Dumper. + +=item B + +Same as B. For symmetry with Perl6's .perl method. + +Like &print with newline. + +=item B + +=back + +=head1 REQUIRED METHODS + +=over 4 + +=item B + +=back =head1 BUGS @@ -34,11 +67,11 @@ Stevan Little Estevan@iinteractive.comE =head1 COPYRIGHT AND LICENSE -Copyright 2006 by Infinity Interactive, Inc. +Copyright 2006-2008 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 \ No newline at end of file +=cut