class Qt::Point
Public Instance Methods
inspect()
click to toggle source
Calls superclass method
# File lib/Qt/qtruby4.rb, line 1646 def inspect str = super str.sub(/>$/, " x=%d, y=%d>" % [self.x, self.y]) end
pretty_print(pp)
click to toggle source
# File lib/Qt/qtruby4.rb, line 1651 def pretty_print(pp) str = to_s pp.text str.sub(/>$/, "\n x=%d,\n y=%d>" % [self.x, self.y]) end
to_s()
click to toggle source
# File ext/ruby/qtruby/test/opoverloading.rb, line 4 def to_s "(#{x}, #{y})" end