============
  PHPRuby
   Enum 
============

Author  : quantumSoup
Version : 0.1alpha
Date    : 07-27-2010

------------
   About
------------

This is a documented, unit tested PHP implementation of Ruby's Enumerable mixin. 
All methods (except .entries and .to_set) listed here are implemented: ruby-doc.org::Enumerable

The motivation for doing this came from this StackOverflow question, "How can I use PHP closures like ruby blocks?".
This class emulates ruby blocks using anonymous functions, and it's more a proof of concept than anything else.

It will be easier just to use a foreach loop and/or one of PHP's built-in array functions to do 
most of what can be done with the enum class, but it was an interesting concept to explore.

DISCLAIMER: I have no ruby experience. This is implementation solely based on the docs. 
Feel free to correct me if I understood something wrong.

------------
 Source:
------------

enum_v01a.zip (14.5 kB)

enum.php
examples.php

------------
 Files:
------------

+ ./
  + docs  : phpDocumentor generated docs
  + tests : PHPUnit tests
  - enum.php     : the enum class
  - examples.php : usage examples
  - README.html  : this file