HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/alt/ruby32/share/gems/doc/json-2.16.0/ri/Range/as_json-i.ri
U:RDoc::AnyMethod[iI"as_json:ETI"Range#as_json;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[I"HMethods <tt>Range#as_json</tt> and +Range.json_create+ may be used ;TI"3to serialize and deserialize a \Range object; ;TI"Dsee Marshal[https://docs.ruby-lang.org/en/master/Marshal.html].;To:RDoc::Markup::BlankLineo;
;	[I"7\Method <tt>Range#as_json</tt> serializes +self+, ;TI"4returning a 2-element hash representing +self+:;T@o:RDoc::Markup::Verbatim;	[	I"require 'json/add/range'
;TI"Mx = (1..4).as_json     # => {"json_class"=>"Range", "a"=>[1, 4, false]}
;TI"Ly = (1...4).as_json    # => {"json_class"=>"Range", "a"=>[1, 4, true]}
;TI"Qz = ('a'..'d').as_json # => {"json_class"=>"Range", "a"=>["a", "d", false]}
;T:@format0o;
;	[I"O\Method +JSON.create+ deserializes such a hash, returning a \Range object:;T@o;;	[I"$Range.json_create(x) # => 1..4
;TI"%Range.json_create(y) # => 1...4
;TI"'Range.json_create(z) # => "a".."d";T;
0:
@fileI"lib/json/add/range.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*);T@#FI"
Range;TcRDoc::NormalClass00