0.04
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / Item.pm
index a80b9d2..0364589 100644 (file)
@@ -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,11 +23,6 @@ __END__
 
 Moose::Autobox::Item - the Item role
 
-=head1 SYNOPOSIS
-
-  use Moose::Autobox;
-  use autobox;
-
 =head1 DESCRIPTION
 
 This is the root of our role hierarchy. 
@@ -30,6 +33,18 @@ This is the root of our role hierarchy.
 
 =item B<meta>
 
+=item B<dump>
+
+Calls Data::Dumper::Dumper.
+
+=item B<perl>
+
+Same as B<dump>. For symmetry with Perl6's .perl method.
+
+Like &print with newline.
+
+=item B<print2>
+
 =back
 
 =head1 REQUIRED METHODS
@@ -52,11 +67,11 @@ Stevan Little E<lt>stevan@iinteractive.comE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2006 by Infinity Interactive, Inc.
+Copyright 2006-2007 by Infinity Interactive, Inc.
 
 L<http://www.iinteractive.com>
 
 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