Class: Wx::Object

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/classes/object.rb

Overview

The root class for most (not all) WxRuby classes

Instance Method Summary collapse

Instance Method Details

#ptr_addrObject

Returns a string containing the C++ pointer address of this object. Only useful for debugging.



11
12
13
# File 'lib/wx/classes/object.rb', line 11

def ptr_addr
  Wx::ptr_addr(self)
end

#to_sObject

Massage the output of inspect to show the public module name (Wx), instead of the internal name (Wxruby2)



5
6
7
# File 'lib/wx/classes/object.rb', line 5

def to_s
  super.sub('ruby2', '')
end