joelmoss/bitmask_attributes — pull request #26 by b4mboo (2012-10-09 09:05:09+00:00)
Title: Introduce inverse convenience class method

I recently needed to calculate the resulting values from a given Fixnum and I thought having that inverse convenience method around might come in handy for other people, too.

So, where you were always able to do stuff like this:
```
Repository.bitmask_for_architectures :x86_64
=> 4
```

You can now also do this:
```
Repository.architectures_for_bitmask 4
=> [:x86_64]
```

I tried matching the general code style when I added the code and the tests for this inverse convenience class method. Hopefully, you like it.