HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.5.9/doc/tzinfo-2.0.4/ri/TZInfo/DataSource/try_with_encoding-i.ri
U:RDoc::AnyMethod[iI"try_with_encoding:ETI")TZInfo::DataSource#try_with_encoding;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"MTries an operation using `string` directly. If the operation fails, the ;TI"Mstring is copied and encoded with `encoding` and the operation is tried ;TI"again.;To:RDoc::Markup::BlankLineo;
;	[I"F@param string [String] The `String` to perform the operation on. ;TI"L@param encoding [Encoding] The `Encoding` to use if the initial attempt;To:RDoc::Markup::Verbatim;	[I"fails.
;T:@format0o;
;	[I"J@yield [s] the caller will be yielded to once or twice to attempt the;To;;	[I"operation.
;T;
0o;
;	[I"L@yieldparam s [String] either `string` or an encoded copy of `string`. ;TI"I@yieldreturn [Object] The result of the operation. Must be truthy if;To;;	[I"successful.
;T;
0o;
;	[I"P@return [Object] the result of the operation or `nil` if the first attempt ;TI";fails and `string` is already encoded with `encoding`.;T:
@fileI"lib/tzinfo/data_source.rb;T:0@omit_headings_from_table_of_contents_below00I"string;T[I"(string, encoding);T@)FI"DataSource;TcRDoc::NormalClass00