diff --git a/lib/Types/Self.pm b/lib/Types/Self.pm index a68e399..ff9ca58 100644 --- a/lib/Types/Self.pm +++ b/lib/Types/Self.pm @@ -175,6 +175,8 @@ This module also exports C, which returns a boolean. return $me; } +C<< is_Self( $var ) >> can also be written as C<< Self->check( $var ) >>. + =head2 C<< assert_Self >> The module also exports C which acts like C but instead @@ -188,11 +190,15 @@ to check that the first argument to a function is a blessed object. return $self; } +C<< assert_Self( $var ) >> can also be written as C<< Self->( $var ) >>. + =head2 C<< to_Self >> The module also exports C which will attempt to coerce other types to the B type. +C<< to_Self( $var ) >> can also be written as C<< Self->coerce( $var ) >>. + =head2 C<< coercions_for_Self >> An easy way of adding coercions to your B type for the benefit of