Created
April 22, 2012 08:40
-
-
Save zaiste/2462755 to your computer and use it in GitHub Desktop.
FooBar with symbolize gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FooBar | |
symbolize :quux, | |
in: [:great, :lesser, :mediocre, :micro], | |
default: :great | |
scope: true, | |
allow_blank: true # false by default | |
methods: true | |
symbolize :operation | |
in: [:cdr, :car] | |
scope: true | |
methods: true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment