PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
OpenStruct
U:RDoc::AnyMethod[iI"as_json:ETI"OpenStruct#as_json;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"RMethods <tt>OpenStruct#as_json</tt> and +OpenStruct.json_create+ may be used ;TI"8to serialize and deserialize a \OpenStruct object; ;TI"#see Marshal[rdoc-ref:Marshal].;To:RDoc::Markup::BlankLine o; ; [I"<\Method <tt>OpenStruct#as_json</tt> serializes +self+, ;TI"4returning a 2-element hash representing +self+:;T@o:RDoc::Markup::Verbatim; [I" require 'json/add/ostruct' ;TI"@x = OpenStruct.new('name' => 'Rowdy', :age => nil).as_json ;TI"I# => {"json_class"=>"OpenStruct", "t"=>{:name=>'Rowdy', :age=>nil}} ;T:@format0o; ; [I"T\Method +JSON.create+ deserializes such a hash, returning a \OpenStruct object:;T@o;; [I"OpenStruct.json_create(x) ;TI"-# => #<OpenStruct name='Rowdy', age=nil>;T; 0: @fileI"%ext/json/lib/json/add/ostruct.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(*);T@!FI"OpenStruct;TcRDoc::NormalClass00
[-] to_s-i.ri
[edit]
[-] to_json-i.ri
[edit]
[-] cdesc-OpenStruct.ri
[edit]
[-] delete_field-i.ri
[edit]
[-] %5b%5d%3d-i.ri
[edit]
[-] as_json-i.ri
[edit]
[-] each_pair-i.ri
[edit]
[-] new-c.ri
[edit]
[-] json_create-c.ri
[edit]
[-] to_h-i.ri
[edit]
[-] eql%3f-i.ri
[edit]
[-] set_ostruct_member_value%21-i.ri
[edit]
[-] %5b%5d-i.ri
[edit]
[+]
..
[-] freeze-i.ri
[edit]
[-] dig-i.ri
[edit]
[-] %3d%3d-i.ri
[edit]
[-] inspect-i.ri
[edit]