rubygem-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
- Sources inherited from project devel:languages:ruby:extensions
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Marvin1973:pcs/rubygem-enumerated_attribute && cd $_
- Create Badge
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
None
Comments 0