Sha256: 7e3481f163dcc1e0ab024bd51251f4486a44ef414df5e9910d950d99bcdbb8e8

Contents?: true

Size: 449 Bytes

Versions: 5

Compression:

Stored size: 449 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-x64-mingw-ucrt lib/wx/core/enum.rb
wxruby3-0.9.0.pre.rc.2-x64-mingw-ucrt lib/wx/core/enum.rb
wxruby3-0.9.0.pre.rc.1-x64-mingw-ucrt lib/wx/core/enum.rb
wxruby3-0.9.0.pre.beta.14-x64-mingw-ucrt lib/wx/core/enum.rb
wxruby3-0.9.0.pre.beta.13-x64-mingw-ucrt lib/wx/core/enum.rb