| Server IP : 68.178.247.200 / Your IP : 216.73.217.16 Web Server : Apache System : Linux p3plzcpnl489463.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 : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/opt/alt/ruby32/share/gems/doc/json-2.16.0/ri/JSON/Coder/ |
Upload File : |
U:RDoc::AnyMethod[iI"new:ETI"JSON::Coder::new;TT:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"`Argument +options+, if given, contains a \Hash of options for both parsing and generating. ;TI"{See {Parsing Options}[#module-JSON-label-Parsing+Options], and {Generating Options}[#module-JSON-label-Generating+Options].;To:RDoc::Markup::BlankLine o;
; [I"|For generation, the <tt>strict: true</tt> option is always set. When a Ruby object with no native \JSON counterpart is ;TI"zencountered, the block provided to the initialize method is invoked, and must return a Ruby object that has a native ;TI"\JSON counterpart:;T@o:RDoc::Markup::Verbatim; [I"module MyApp
;TI"4 API_JSON_CODER = JSON::Coder.new do |object|
;TI" case object
;TI" when Time
;TI" object.iso8601(3)
;TI" else
;TI"- object # Unknown type, will raise
;TI"
end
;TI" end
;TI" end
;TI"
;TI"Rputs MyApp::API_JSON_CODER.dump(Time.now.utc) # => "2025-01-21T08:41:44.286Z";T:@format0:
@fileI"lib/json/common.rb;T:0@omit_headings_from_table_of_contents_below0I"%JSON.new(options = nil, &block)
;T0[ I"(options = nil, &as_json);T@#FI"
Coder;TcRDoc::NormalClass00