Sha256: 7b0b6d785dacfbea375250766536fb1fd9a070d3153fad20dd86f1d9be1eb79a
Contents?: true
Size: 871 Bytes
Versions: 4
Compression:
Stored size: 871 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
4 entries across 4 versions & 1 rubygems