U:RDoc::AnyMethod[iI"compatible?:ETI"Encoding::compatible?;TT: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"-Checks the compatibility of two objects.;To:RDoc::Markup::BlankLineo; ; [I"GIf the objects are both strings they are compatible when they are ;TI"Oconcatenatable. The encoding of the concatenated string will be returned ;TI"1if they are compatible, nil if they are not.;T@o:RDoc::Markup::Verbatim; [ I"DEncoding.compatible?("\xa1".force_encoding("iso-8859-1"), "b") ;TI" #=> # ;TI" ;TI"Encoding.compatible?( ;TI", "\xa1".force_encoding("iso-8859-1"), ;TI", "\xa1\xa1".force_encoding("euc-jp")) ;TI" #=> nil ;T: @format0o; ; [I"MIf the objects are non-strings their encodings are compatible when they ;TI"have an encoding and:;To:RDoc::Markup::List: @type: BULLET: @items[o:RDoc::Markup::ListItem: @label0; [o; ; [I"+Either encoding is US-ASCII compatible;To;;0; [o; ; [I"-One of the encodings is a 7-bit encoding;T: @fileI"encoding.c;T:0@omit_headings_from_table_of_contents_below0I"4Encoding.compatible?(obj1, obj2) -> enc or nil ;T0[I" (p1, p2);T@-FI" Encoding;TcRDoc::NormalClass00