Skip to content

Instantly share code, notes, and snippets.

@zaiste
Created April 22, 2012 08:40
Show Gist options
  • Save zaiste/2462755 to your computer and use it in GitHub Desktop.
Save zaiste/2462755 to your computer and use it in GitHub Desktop.
FooBar with symbolize gem
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