aboutsummaryrefslogtreecommitdiffstats
path: root/range.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2023-11-16 10:28:07 -0600
committerGitHub <noreply@github.com>2023-11-16 08:28:07 -0800
commitb92a92a3fff88a3a39bec72bfc48b1b6e936137e (patch)
tree0c8adc0a65df1578586307d5b2153dad5062700d /range.c
parent2524c8b5511753b1d854512d0a5b37afc4e2ff5c (diff)
downloadruby-b92a92a3fff88a3a39bec72bfc48b1b6e936137e.tar.gz
[DOC] More on JSON extensions (#8898)
Diffstat (limited to 'range.c')
-rw-r--r--range.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/range.c b/range.c
index 7e72984dc7..91c0d2783c 100644
--- a/range.c
+++ b/range.c
@@ -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