Class Poll::EventMask
In: lib/poll.rb
Parent: DelegateClass( Fixnum )

A Fixnum derivative that does bitwise AND for ===.

Methods
&    ===    ^    new    |   
Public Class methods
new( mask )

Create and return a new Poll::EventMask object with the specified bitmask (an Integer).

Public Instance methods
===( otherNum )

Returns true if the receiver bitwise ANDed with otherNum is non-zero. This is useful for using bitmasks in case blocks.

|( otherNum )

Returns a new EventMask after ORing the receiver with the specified value.

&( otherNum )

Returns a new EventMask after ANDing the receiver with the specified value.

^( otherNum )

Returns a new EventMask after XORing the receiver with the specified value.