D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Array
/
Filename :
compact-i.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns a copy of <em>self</em> with all <tt>nil</tt> elements removed. - !ruby/struct:SM::Flow::VERB body: " [ "a", nil, "b", nil, "c", nil ].compact\n #=> [ "a", "b", "c" ]\n" full_name: Array#compact is_singleton: false name: compact params: | array.compact -> an_array visibility: public