RAA - eachdelegator

eachdelegator / 0.1.3

Short description: EachDelegator
Category: Library/Syntax
Status: just started. but usable.
Created: 2001-01-23 06:53:38 GMT
Last update: -
Owner: Okada -yun- Jun (Projects of this owner)
Homepage: http://www.nekome.net/ruby/index_en.html
Download: http://www.nekome.net/ruby/eachdelegator/eachdelegator-0.1.3.tar.gz
License: Ruby's
Dependency:
None
Description:

EachDelegator add Enumrable capability to a existing method,
which is like iterator (takes block as argument).

Example)
p "hoge".each_byte.each_with_index.collect{|a, i| [ i, a ]}
=> [[0, 104], [1, 111], [2, 103], [3, 101]]

Edit this project (for project owner)

back to RAA top