Skip to content

Commit

Permalink
[DOC] More on JSON extensions (ruby#8898)
Browse files Browse the repository at this point in the history
  • Loading branch information
BurdetteLamar authored Nov 16, 2023
1 parent 2524c8b commit b92a92a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions range.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b92a92a

Please sign in to comment.