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=0cb20926849f6c699939d0370bbf2c438ae5ab52;hpb=260cc81f7ab424f417900ab1c44b734b339f9d9e;p=gitmo%2FMoose-Autobox.git diff --git a/lib/Moose/Autobox/Item.pm b/lib/Moose/Autobox/Item.pm index 0cb2092..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,19 +23,28 @@ __END__ Moose::Autobox::Item - the Item role -=head1 SYNOPOSIS - - use Moose::Autobox; - use autobox; - =head1 DESCRIPTION +This is the root of our role hierarchy. + =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 @@ -50,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