- Moose::Autobox::Ref perl() as alias to dump()
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / Ref.pm
index 7d83e88..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,11 +23,6 @@ __END__
 
 Moose::Autobox::Ref - the Ref role
 
-=head1 SYNOPOSIS
-
-  use Moose::Autobox;
-  use autobox;
-
 =head1 DESCRIPTION
 
 This is a role to describes a reference value. 
@@ -30,6 +33,14 @@ This is a role to describes a reference value.
 
 =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
@@ -51,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