[SCM] libmoox-options-perl Debian packaging branch, master, updated. debian/3.78-1-17-g6aa50a6
celogeek
me at celogeek.com
Mon May 6 12:22:39 UTC 2013
The following commit has been merged in the master branch:
commit 50a4afeed495159c3d6de02412cd8a2d7f6e537f
Author: celogeek <me at celogeek.com>
Date: Thu Apr 25 00:12:51 2013 +0200
v3.79
* Feature #192 : support json mode (Celogeek San)
diff --git a/Changes b/Changes
index fb1be92..07ef298 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
{{$NEXT}}
+3.79 2013-04-25 00:12:25 Europe/Paris
+
* Feature #192 : support json mode (Celogeek San)
3.78 2013-04-12 01:16:12 Europe/Paris
diff --git a/README.mkdn b/README.mkdn
index 57ae66f..73f6882 100644
--- a/README.mkdn
+++ b/README.mkdn
@@ -4,7 +4,7 @@ MooX::Options - add option keywords to your object (Mo/Moo/Moose)
# VERSION
-version 3.78
+version 3.79
# MooX::Options
@@ -298,6 +298,27 @@ Ex:
Specified the order of the attribute.
+ The order value is an integer.
+
+- json
+
+ The parameter will be treat like a json string.
+
+ Ex :
+
+ {
+ package t;
+ use Moo;
+ use MooX::Options;
+
+ option 'hash' => (is => 'ro', json => 1);
+
+ 1;
+ }
+ local @ARGV=('--hash', '{"a":1,"b":2}');
+ my $t = t->new_with_options;
+ t->hash # { a => 1, b => 2 }
+
# namespace::clean
To use namespace::clean you need to add 2 methods as an exception. It is use by MooX::Options when you run the new\_with\_options methods.
--
libmoox-options-perl Debian packaging
More information about the Pkg-perl-cvs-commits
mailing list