Class: Wx::Object
- Inherits:
-
Object
- Object
- Wx::Object
- Defined in:
- lib/wx/classes/object.rb
Overview
The root class for most (not all) WxRuby classes
Instance Method Summary collapse
-
#ptr_addr ⇒ Object
Returns a string containing the C++ pointer address of this object.
-
#to_s ⇒ Object
Massage the output of inspect to show the public module name (Wx), instead of the internal name (Wxruby2).
Instance Method Details
#ptr_addr ⇒ Object
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_s ⇒ Object
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 |