RAA - enumerable-extr

enumerable-extr / 0.1.1

Short description: Overridden methods for Enumerable objects
Category: Library/Misc
Status: usable
Created: 2009-05-14 15:13:30 GMT
Last update: 2009-07-18 16:07:50 GMT
Owner: Daniel J. Berger (Projects of this owner)
Homepage: http://rubyforge.org/projects/shards
Download: http://rubyforge.org/frs/download.php/60502/enumerable-extra-0.1.1.zip
License: Ruby's
Dependency:
None
Description:

The enumerable-extra library redefines the 'map' and 'collect' methods to accept arguments as shortcuts for common operations.

For example, instead of this:

array.map{ |e| e.capitalize }

You can do this:

array.map(:capitalize)

Unlike Symbol#to_proc, you can pass arguments as well:

array.map(:+, 1)

Versions: [0.1.1 (2009-07-18)] [0.1.0 (2009-05-14)]

Edit this project (for project owner)

back to RAA top