In message <f15b00519ae6326d2171a8a162995dbd / ruby-forum.com>, Sebastian probst Eide writes: >I basically just need a way to read the different values. I'll try to >extend it myself so I can read any given number of flags myself. Just >need to understand how to read and set the flags! You're looking for "bitwise operators". Experiment with "5 & 4" or "1 | 4". -s