Onion, or Array Onion, allows peeling an array like an onion.It shreds one layer after another, from the outer inwards the inner nested array, according to the given depth. Infinite depth (or greater than current nested array depth) is equivalent to Array#flatten.

Required Ruby Version

None

Authors

Ian Trudel

Versions

  1. 0.0.2 April 16, 2009* (9 KB)
  2. 0.0.1 March 28, 2009* (8.5 KB)

SHA 256 checksum