Current File : //proc/thread-self/root/proc/self/root/opt/alt/ruby18/share/ri/1.8/system/Array/compact-i.yaml |
--- !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