Revision history for Perl extension Moose::Autobox
+0.07
+ * Moose::Autobox
+ - added documentation about how to extend the autoboxed
+ types (RT #34315)
+
0.06 Tues. Jan. 22, 2008
~~ updated copyright dates & some docs ~~
-Moose::Autobox version 0.06
+Moose::Autobox version 0.07
===========================
See the individual module documentation for more information
use Scalar::Util ();
use Moose::Util ();
-our $VERSION = '0.06';
+our $VERSION = '0.07';
use base 'autobox';
any questions regarding this module, either email me, or stop by #moose
on irc.perl.org and ask around.
+=head2 Adding additional methods
+
+B<Moose::Autobox> asks L<autobox> to use the B<Moose::Autobox::*> namespace
+prefix so as to avoid stepping on the toes of other L<autobox> modules. This
+means that if you want to add methods to a particular perl type
+(i.e. - monkeypatch), then you must do this:
+
+ sub Moose::Autobox::SCALAR::bar { 42 }
+
+instead of this:
+
+ sub SCALAR::bar { 42
+
+as you would with vanilla autobox.
+
=head1 METHODS
=over 4