[DOC] More on JSON extensions (#8898)
This commit is contained in:
parent
2524c8b551
commit
b92a92a3ff
11
range.c
11
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user