Make this easier to use for multi-typed data objects. Comparison doesn’t work correctly in the SWIG binding
4 5 6 7 8 9 10
# File 'lib/wx/classes/dataformat.rb', line 4 def ==(other) if self.get_type > Wx::DATA_FORMAT_ID_INVALID self.get_type == other.get_type else self.id == other.id end end