PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Range
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"#see Marshal[rdoc-ref:Marshal].;To:RDoc::Markup::BlankLine o; ; [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"#ext/json/lib/json/add/range.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(*);T@#FI" Range;TcRDoc::NormalClass00
[-] last-i.ri
[edit]
[-] include%3f-i.ri
[edit]
[-] count-i.ri
[edit]
[-] size-i.ri
[edit]
[-] bsearch-i.ri
[edit]
[-] end-i.ri
[edit]
[-] to_s-i.ri
[edit]
[-] max-i.ri
[edit]
[-] to_json-i.ri
[edit]
[-] first-i.ri
[edit]
[-] as_json-i.ri
[edit]
[-] reverse_each-i.ri
[edit]
[-] cover%3f-i.ri
[edit]
[-] to_a-i.ri
[edit]
[-] new-c.ri
[edit]
[-] minmax-i.ri
[edit]
[-] json_create-c.ri
[edit]
[-] min-i.ri
[edit]
[-] hash-i.ri
[edit]
[-] each-i.ri
[edit]
[-] step-i.ri
[edit]
[-] %3d%3d%3d-i.ri
[edit]
[-] eql%3f-i.ri
[edit]
[-] cdesc-Range.ri
[edit]
[-] member%3f-i.ri
[edit]
[-] %25-i.ri
[edit]
[-] exclude_end%3f-i.ri
[edit]
[-] begin-i.ri
[edit]
[-] overlap%3f-i.ri
[edit]
[+]
..
[-] entries-i.ri
[edit]
[-] %3d%3d-i.ri
[edit]
[-] inspect-i.ri
[edit]