--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Removes nil elements from array. Returns nil if no changes were made.
- !ruby/struct:SM::Flow::VERB
body: " [ "a", nil, "b", nil, "c" ].compact! #=> [ "a", "b", "c" ]\n [ "a", "b", "c" ].compact! #=> nil\n"
full_name: Array#compact!
is_singleton: false
name: compact!
params: |
array.compact! -> array or nil
visibility: public