Module: Doing::ArrayCleanup

Defined in:
lib/doing/array/cleanup.rb

Instance Method Summary collapse

Instance Method Details

#remove_badArray

Like Array#compact -- removes nil items, but also removes empty strings, zero or negative numbers and FalseClass items

Returns:

  • (Array)

    Array without "bad" elements

#remove_bad!Object

#remove_emptyArray

Like Array#compact -- removes nil items, but also removes empty elements

Returns:

  • (Array)

    Array without empty elements

#remove_empty!Object