Sha256: b634089eb43b4b20c785da98c114a2074d720cad728c337c3ad290b9f821cbe0
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 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 ! self.to_i == 0 end def hash @value.hash end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-0.9.2 | lib/wx/core/enum.rb |
wxruby3-0.9.1 | lib/wx/core/enum.rb |
wxruby3-0.9.0 | lib/wx/core/enum.rb |