Skip to content

Commit

Permalink
Specify how to ask the accessor to coerce
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjack committed Jun 17, 2015
1 parent 9a28df5 commit 5018e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Moose/Util/TypeConstraints.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ additional subroutine reference as the final argument to C<match_on_type>.
You can define coercions for type constraints, which allow you to
automatically transform values to something valid for the type
constraint. If you ask your accessor to coerce, then Moose will run
constraint. If you ask your accessor to coerce by adding the option C<< coerce => 1 >>, then Moose will run
the type-coercion code first, followed by the type constraint
check. This feature should be used carefully as it is very powerful
and could easily take off a limb if you are not careful.
Expand Down

0 comments on commit 5018e3b

Please sign in to comment.