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/JSON/Coder/new-c.ri
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::BlankLineo;
;	[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