twinslash/enumerize — Issue #5: Boolean methods
Author: lest
Created: 2012-01-30 17:19:59+00:00
State: open

Example:

```ruby
class User
include Enumerize

enumerize :sex, :in => [:male, :female], :methods => true
enumerize :role, :in => [:user, :admin], :methods => 'role_'
end

user.sex = 'male'
user.male? # false
user.female? # true

user.role = :admin
user.role_user? # false
user.role_admin? # true
```