Revision history for MooseX-Storage
+0.13
+ * MooseX::Storage::Engine
+ - added find_type_handler_for($name) method
+ to make finding type handlers easier
+ - improved error messages
+
0.12 Fri. March 14, 2008
- added build_requires for Test::Deep (awwaiid)
package MooseX::Storage::Engine;
use Moose;
-our $VERSION = '0.05';
+our $VERSION = '0.06';
our $AUTHORITY = 'cpan:STEVAN';
# the class marker when
# ($obj->can('does') && $obj->does('MooseX::Storage::Basic'))
# || confess "Bad object ($obj) does not do MooseX::Storage::Basic role";
($obj->can('pack'))
- || confess "Object does not have a &pack method, cannot collapse";
+ || confess "Object ($obj) does not have a &pack method, cannot collapse";
$obj->pack(%$options);
},
);
confess "Cannot handle type constraint (" . $type_constraint->name . ")";
}
+sub find_type_handler_for {
+ my ($self, $type_handler_name) = @_;
+ $TYPES{$type_handler_name}
+}
+
1;
__END__
=over 4
-=item B<find_type_handler>
+=item B<find_type_handler ($type)>
+
+=item B<find_type_handler_for ($name)>
-=item B<add_custom_type_handler>
+=item B<add_custom_type_handler ($name, %handlers)>
-=item B<remove_custom_type_handler>
+=item B<remove_custom_type_handler ($name)>
=back