File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -2609,6 +2609,7 @@ range_overlap(VALUE range, VALUE other)
2609
2609
* - {Comparing}[rdoc-ref:Range@Methods+for+Comparing]
2610
2610
* - {Iterating}[rdoc-ref:Range@Methods+for+Iterating]
2611
2611
* - {Converting}[rdoc-ref:Range@Methods+for+Converting]
2612
+ * - {Methods for Working with JSON}[rdoc-ref:Range@Methods+for+Working+with+JSON]
2612
2613
*
2613
2614
* === Methods for Creating a \Range
2614
2615
*
@@ -2651,6 +2652,16 @@ range_overlap(VALUE range, VALUE other)
2651
2652
* - #to_a (aliased as #entries): Returns elements of +self+ in an array.
2652
2653
* - #to_s: Returns a string representation of +self+ (uses #to_s).
2653
2654
*
2655
+ * === Methods for Working with \JSON
2656
+ *
2657
+ * - ::json_create: Returns a new \Range object constructed from the given object.
2658
+ * - #as_json: Returns a 2-element hash representing +self+.
2659
+ * - #to_json: Returns a \JSON string representing +self+.
2660
+ *
2661
+ * To make these methods available:
2662
+ *
2663
+ * require 'json/add/range'
2664
+ *
2654
2665
*/
2655
2666
2656
2667
void
You can’t perform that action at this time.
0 commit comments