diff options
author | Sho Hashimoto <sho.hsmt@gmail.com> | 2019-01-08 09:12:05 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-14 19:54:49 +0900 |
commit | 308bbb4e10d247063889ebd9ba957e62f17978a5 (patch) | |
tree | 60635ab440dc86e09c111317ec167f86dea11297 /ext | |
parent | 98a9445db943c747e8d98cf7236e891eb48b5be0 (diff) | |
download | ruby-308bbb4e10d247063889ebd9ba957e62f17978a5.tar.gz |
[flori/json] Add ascii_only option to JSON::Ext::Generator::State.new.
https://github.com/flori/json/commit/0e99a9aac5
Diffstat (limited to 'ext')
-rw-r--r-- | ext/json/generator/generator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c index 9bbda28fc7..443b4d3e79 100644 --- a/ext/json/generator/generator.c +++ b/ext/json/generator/generator.c @@ -1025,6 +1025,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. */ |