summaryrefslogtreecommitdiff
path: root/ext/json/generator
diff options
context:
space:
mode:
authorSho Hashimoto <sho.hsmt@gmail.com>2019-01-08 09:12:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-14 19:54:49 +0900
commit308bbb4e10d247063889ebd9ba957e62f17978a5 (patch)
tree60635ab440dc86e09c111317ec167f86dea11297 /ext/json/generator
parent98a9445db943c747e8d98cf7236e891eb48b5be0 (diff)
[flori/json] Add ascii_only option to JSON::Ext::Generator::State.new.
https://github.com/flori/json/commit/0e99a9aac5
Diffstat (limited to 'ext/json/generator')
-rw-r--r--ext/json/generator/generator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c
index 9bbda28fc7f..443b4d3e794 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.
*/