mirror of
https://github.com/vidarh/rubywm.git
synced 2024-11-15 19:48:30 +01:00
Monkey patch cleaned up Geometry inspect to ease debugging.
This commit is contained in:
parent
b1eccca57d
commit
d4fdee3b57
1 changed files with 7 additions and 0 deletions
7
geom.rb
7
geom.rb
|
@ -1,4 +1,11 @@
|
|||
|
||||
module X11
|
||||
module Form
|
||||
class Geometry
|
||||
def inspect = "<Geometry x=#{x.to_i} y=#{y.to_i} width=#{width.to_i} height=#{height.to_i}>"
|
||||
end
|
||||
end
|
||||
end
|
||||
def gap(geom,g)
|
||||
geom = geom.dup
|
||||
geom.x += g
|
||||
|
|
Loading…
Reference in a new issue