projects
/
p5sagit/JSON-MaybeXS.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
do not recomment importing everything from Moose::Util::TypeConstraints
[p5sagit/JSON-MaybeXS.git]
/
lib
/
JSON
/
MaybeXS.pm
diff --git
a/lib/JSON/MaybeXS.pm
b/lib/JSON/MaybeXS.pm
index
a9ef9de
..
65702d2
100644
(file)
--- a/
lib/JSON/MaybeXS.pm
+++ b/
lib/JSON/MaybeXS.pm
@@
-241,7
+241,7
@@
constant described above, as so:
Alternatively, you can use duck typing:
- use Moose::Util::TypeConstraints;
+ use Moose::Util::TypeConstraints 'duck_type';
is 'json' => ( isa => Object , duck_type([qw/ encode decode /]));
=head1 AUTHOR