diff options
author | Sho Hashimoto <sho.hsmt@gmail.com> | 2019-01-08 09:12:05 +0900 |
---|---|---|
committer | Sho Hashimoto <sho.hsmt@gmail.com> | 2019-01-08 09:12:05 +0900 |
commit | 0e99a9aac5d589a0914886cc5a89583226212ac9 (patch) | |
tree | 85f5316221f38d685fca5fc33f0178e61142d66a /ext | |
parent | fd6f86f5d9b5497c03c562139d16a65fe07397fb (diff) | |
download | json-0e99a9aac5d589a0914886cc5a89583226212ac9.tar.gz |
Add ascii_only option to JSON::Ext::Generator::State.new.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/json/ext/generator/generator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c index 2bf8074..10669d7 100644 --- a/ext/json/ext/generator/generator.c +++ b/ext/json/ext/generator/generator.c @@ -970,6 +970,8 @@ static VALUE cState_generate(VALUE self, VALUE obj) * * *allow_nan*: true if NaN, Infinity, and -Infinity should be * generated, otherwise an exception is thrown, if these values are * encountered. This options defaults to false. + * * *ascii_only*: true if only ASCII characters should be generated. This + * ontions defaults to false. * * *buffer_initial_length*: sets the initial length of the generator's * internal buffer. */ |