Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class constant please? #32

Open
fringd opened this issue Sep 9, 2011 · 1 comment
Open

class constant please? #32

fringd opened this issue Sep 9, 2011 · 1 comment

Comments

@fringd
Copy link
Contributor

fringd commented Sep 9, 2011

I find myself doing the following every time i declare an attribute

GEARS = enumerated_attributes[:gear].freeze

some of the competing enumerated libraries just do this, and i think they've got it right (although lack in places where this gem shines). Please consider this humble feature request.

@tinynumbers
Copy link
Collaborator

@fringd - Can you provide examples of some of the other enumeration libraries that provide this sort of feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants