- Moose::Autobox::Ref perl() as alias to dump()
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / Ref.pm
index f4a2562..843d081 100644 (file)
@@ -1,10 +1,18 @@
 package Moose::Autobox::Ref;     
 use Moose::Role 'with';
 
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
 with 'Moose::Autobox::Defined';
 
+sub dump {
+    my $self = shift;
+    require Data::Dumper;
+    return Data::Dumper::Dumper($self);
+}
+
+*perl = *dump;
+
 1;
 
 __END__
@@ -15,12 +23,25 @@ __END__
 
 Moose::Autobox::Ref - the Ref role
 
-=head1 SYNOPOSIS
+=head1 DESCRIPTION
+
+This is a role to describes a reference value. 
 
-  use Moose::Autobox;
-  use autobox;
+=head1 METHODS
 
-=head1 DESCRIPTION
+=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.
+
+=back
 
 =head1 BUGS
 
@@ -41,4 +62,4 @@ 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