File: //usr/local/rvm/gems/ruby-2.7.4/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::BlankLine o;
; [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