Sha256: 3afb8f564f0385918bbe3ce57018ac33d4259231524a557dcf66bf65db70e906
Contents?: true
Size: 816 Bytes
Versions: 5
Compression:
Stored size: 816 Bytes
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license 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 ! to_i == 0 end def allbits?(mask) to_i.allbits?(mask) end def anybits?(mask) to_i.anybits?(mask) end def nobits?(mask) to_i.nobits?(mask) end def hash @value.hash end def to_s to_i.to_s end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-0.9.8 | lib/wx/core/enum.rb |
wxruby3-0.9.7 | lib/wx/core/enum.rb |
wxruby3-0.9.5 | lib/wx/core/enum.rb |
wxruby3-0.9.4 | lib/wx/core/enum.rb |
wxruby3-0.9.3 | lib/wx/core/enum.rb |