joelmoss/bitmask_attributes — pull request #25 by b4mboo (2012-10-09 09:01:18+00:00)
Title: Raw bitmask setter

In addition to my other pull request I wanted to be able to set a raw Fixnum value as a bitmask. Since I need to reset the instance variable that holds the ValueProxy, I decided to add another convenience method (this time to the instance).

Here is what we had so far:
```
repo = Repository.last
=> #
repo.architectures
=> [:x86_64]
```

Now for the new stuff:
```
repo.architectures_bitmask = 0
=> 0
repo.architectures
=> []
```
```
repo.architectures_bitmask = 4
=> 4
repo.architectures
=> [:x86_64]
```