Module: Doing::ArrayCleanup
- Defined in:
- lib/doing/array/cleanup.rb
Instance Method Summary collapse
-
#remove_bad ⇒ Array
Like Array#compact -- removes nil items, but also removes empty strings, zero or negative numbers and FalseClass items.
- #remove_bad! ⇒ Object
-
#remove_empty ⇒ Array
Like Array#compact -- removes nil items, but also removes empty elements.
- #remove_empty! ⇒ Object
Instance Method Details
#remove_bad ⇒ Array
Like Array#compact -- removes nil items, but also removes empty strings, zero or negative numbers and FalseClass items
#remove_bad! ⇒ Object
#remove_empty ⇒ Array
Like Array#compact -- removes nil items, but also removes empty elements