Monkey patch cleaned up Geometry inspect to ease debugging.

This commit is contained in:
Vidar Hokstad 2024-01-23 01:51:32 +00:00
parent b1eccca57d
commit d4fdee3b57

View file

@ -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