packaging improvements
[gitmo/Moose-Autobox.git] / lib / Moose / Autobox / Value.pm
index e3c88ed..0a343b8 100644 (file)
@@ -1,12 +1,10 @@
 package Moose::Autobox::Value;     
-use Moose::Role 'with', 'requires';
+use Moose::Role 'with';
 
 our $VERSION = '0.01';
 
 with 'Moose::Autobox::Defined';
 
-requires 'print';
-
 sub do { 
     my ($self, $block) = @_;
     local $_ = $self;
@@ -25,15 +23,24 @@ Moose::Autobox::Value - the Value role
 =head1 SYNOPOSIS
 
   use Moose::Autobox;
-  use autobox;
-  
-  5->print; # prints 5
   
-  # excute a sub on the value
-  10->do(sub { $_ + 15 })->print; # prints 25
+  # execute a sub on the value
+  print 10->do(sub { $_ * $_ }); # prints 100
 
 =head1 DESCRIPTION
 
+This is a role to describes a defined (non-reference) Perl value.
+
+=head1 METHODS
+
+=over 4
+
+=item B<meta>
+
+=item B<do (\&block)>
+
+=back
+
 =head1 BUGS
 
 All complex software has bugs lurking in it, and this module is no 
@@ -46,7 +53,7 @@ Stevan Little E<lt>stevan@iinteractive.comE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2006 by Infinity Interactive, Inc.
+Copyright 2006-2008 by Infinity Interactive, Inc.
 
 L<http://www.iinteractive.com>