Sha256: 54d1cd34b4b64586dca65634a3bb2c164495c8cdcd788ce9a9a7db227a9e39c4

Contents?: true

Size: 417 Bytes

Versions: 5

Compression:

Stored size: 417 Bytes

Contents

class Wx::Enum

  def |(other)
    if other.instance_of?(self.class)
      self.class.new(to_i | other.to_i)
    else
      to_i | other.to_i
    end
  end

  def &(other)
    if other.instance_of?(self.class)
      self.class.new(to_i & other.to_i)
    else
      to_i & other.to_i
    end
  end

  def ~
    self.class.new(~self.to_i)
  end

  def !
    self.to_i == 0
  end

  def hash
    @value.hash
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 lib/wx/core/enum.rb
wxruby3-0.9.0.pre.rc.2 lib/wx/core/enum.rb
wxruby3-0.9.0.pre.rc.1 lib/wx/core/enum.rb
wxruby3-0.9.0.pre.beta.14 lib/wx/core/enum.rb
wxruby3-0.9.0.pre.beta.13 lib/wx/core/enum.rb