rubygem-enumerated_attribute

Edit Package rubygem-enumerated_attribute
http://github.com/jeffp/enumerated_attribute

Enumerations are a common and useful pattern in programming. Typically, in
Ruby, enumerated attributes are implemented with strings, symbols or
constants. Often the developer is burdened with repeatedly defining common
methods in support of each attribute. Such repetition coding unnecessarily
increases costs and wastes time.

enumerated_attribute simplifies the definition of enumerated attributes by
emphasizing convention and DRYing the implementation. Repetitive code such
as initializers, accessors, predicate and enumeration methods are
automatically generated, resulting in better encapsulation, quicker
implementation and cleaner code.

Features include:
* ActiveRecord integration
* ActionView form helpers
* Scaffold generator integration
* Configurable enumeration labels
* Auto-defined attribute methods
* Dynamically-generated predicate methods
* Automatic initialization
* Advanced configuration DSL

Refresh
Refresh
Source Files
Filename Size Changed
enumerated_attribute-0.2.16.gem 0000190464 186 KB
rubygem-enumerated_attribute.changes 0000000583 583 Bytes
rubygem-enumerated_attribute.spec 0000001527 1.49 KB
Latest Revision
Jordi Massaguer's avatar Jordi Massaguer (jordimassaguerpla) committed (revision 5)
None
Comments 0
openSUSE Build Service is sponsored by