📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 05:44:33
📂
/ (Root)
/
opt
/
alt
/
ruby30
/
share
/
ri
/
system
/
Array
📍 /opt/alt/ruby30/share/ri/system/Array
🔄 Refresh
✏️
Editing: join-i.ri
Read Only
U:RDoc::AnyMethod[iI" join:ETI"Array#join;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"TReturns the new \String formed by joining the array elements after conversion. ;TI"For each element +element+;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"OUses <tt>element.to_s</tt> if +element+ is not a <tt>kind_of?(Array)</tt>.;To;;0; [o; ; [I"`Uses recursive <tt>element.join(separator)</tt> if +element+ is a <tt>kind_of?(Array)</tt>.;To:RDoc::Markup::BlankLine o; ; [I"KWith no argument, joins using the output field separator, <tt>$,</tt>:;To:RDoc::Markup::Verbatim; [I"a = [:foo, 'bar', 2] ;TI"$, # => nil ;TI"a.join # => "foobar2" ;T:@format0o; ; [I"CWith \string argument +separator+, joins using that separator:;To;; [I"a = [:foo, 'bar', 2] ;TI"%a.join("\n") # => "foo\nbar\n2" ;T;0o; ; [I")Joins recursively for nested Arrays:;To;; [I"&a = [:foo, [:bar, [:baz, :bat]]] ;TI"a.join # => "foobarbazbat";T;0: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"Farray.join ->new_string array.join(separator = $,) -> new_string ;T0[ I"(*args);T@2FI" Array;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel