title: Bit banging in ruby
body: <p>I want to create a bit, that will contain security permissions for a given user.</p>
  
  <p>In c#, I would do this by creating an enumeration, and then I would do some bit banging on the binary value, by anding '&amp;&amp;' to see if it results in a TRUE value.</p>
  
  <p>How can I do this best in Ruby?</p>