0.04
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / Item.pm
index f7316b2..0364589 100644 (file)
@@ -1,6 +1,77 @@
 package Moose::Autobox::Item;     
-use Moose::Role 'with';
+use Moose::Role 'requires';
 
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
-1;
\ No newline at end of file
+requires 'defined';
+
+sub dump {
+    my $self = shift;
+    require Data::Dumper;
+    return Data::Dumper::Dumper($self);
+}
+
+*perl = \&dump;
+
+1;
+
+__END__
+
+=pod
+
+=head1 NAME 
+
+Moose::Autobox::Item - the Item role
+
+=head1 DESCRIPTION
+
+This is the root of our role hierarchy. 
+
+=head1 METHODS
+
+=over 4
+
+=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
+
+=over 4
+
+=item B<defined>
+
+=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 E<lt>stevan@iinteractive.comE<gt>
+
+=head1 COPYRIGHT AND LICENSE
+
+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