Posted By: Michael Lang
Date: 2009-02-02 18:42
Summary: [ANN] Initial release of Elemental
Project: Elemental Enumerated Types
I am happy to announce the initial release of Elemental 0.1.1.
Elemental provides enumerated collection of elements that allow you to
associate ruby symbols to arbitrary “display” values, thus allowing
your code to think symbolically and unambiguously while giving you the
means to easily display what end-users need to see. Additionally,
symbols are associated with ordinal values, allowing easy storage/
retrieval to persistent stores (databases, files, marshalling, etc) by
saving the Element#value as appropriate (String by default, Fixnum if
you “persist_ordinally”).
The primary aim of Elemental is to collect and abstract literals away
from your code logic. There’s an old programmer’s wisdom that you
should not encode your logic using literal values, especially those
the end-user is exposed to.
Complete details provided in README.txt
http://rubyforge.org/projects/elemental/
Regards,
Michael