diff options
author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2023-11-16 10:28:07 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 08:28:07 -0800 |
commit | b92a92a3fff88a3a39bec72bfc48b1b6e936137e (patch) | |
tree | 0c8adc0a65df1578586307d5b2153dad5062700d /range.c | |
parent | 2524c8b5511753b1d854512d0a5b37afc4e2ff5c (diff) | |
download | ruby-b92a92a3fff88a3a39bec72bfc48b1b6e936137e.tar.gz |
[DOC] More on JSON extensions (#8898)
Diffstat (limited to 'range.c')
-rw-r--r-- | range.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2609,6 +2609,7 @@ range_overlap(VALUE range, VALUE other) * - {Comparing}[rdoc-ref:Range@Methods+for+Comparing] * - {Iterating}[rdoc-ref:Range@Methods+for+Iterating] * - {Converting}[rdoc-ref:Range@Methods+for+Converting] + * - {Methods for Working with JSON}[rdoc-ref:Range@Methods+for+Working+with+JSON] * * === Methods for Creating a \Range * @@ -2651,6 +2652,16 @@ range_overlap(VALUE range, VALUE other) * - #to_a (aliased as #entries): Returns elements of +self+ in an array. * - #to_s: Returns a string representation of +self+ (uses #to_s). * + * === Methods for Working with \JSON + * + * - ::json_create: Returns a new \Range object constructed from the given object. + * - #as_json: Returns a 2-element hash representing +self+. + * - #to_json: Returns a \JSON string representing +self+. + * + * To make these methods available: + * + * require 'json/add/range' + * */ void |