summaryrefslogtreecommitdiff
path: root/ext/json/lib
diff options
context:
space:
mode:
authorEdouard CHIN <[email protected]>2025-01-29 23:27:19 +0100
committerNobuyoshi Nakada <[email protected]>2025-01-30 16:56:02 +0900
commit7f70ef64aff9b22b080690cdf9a725a2acb70f17 ()
treed319f85aa1c7b8116c617827ee324b96184bc006 /ext/json/lib
parent2880ec0948bea9d5fffa2395498b91197a62e1fb (diff)
[ruby/json] Few doc tweaks:
- Also modified the gemspec files' blob as the ragel's `parser.rl` file was removed in https://.com/ruby/json/commit/c8d5236a921e https://.com/ruby/json/commit/b2b106e314
-rw-r--r--ext/json/lib/json/common.rb4
1 files changed, 2 insertions, 2 deletions
@@ -172,10 +172,10 @@ module JSON
# JSON.generate({ count: 3, items: fragments })
#
# This allows to easily assemble multiple JSON fragments that have
- # been peristed somewhere without having to parse them nor resorting
# to string interpolation.
#
- # Note: no validation is performed on the provided string. it is the
# responsability of the caller to ensure the string contains valid JSON.
Fragment = Struct.new(:json) do
def initialize(json)