Skip to content

Commit

Permalink
Monkey patch cleaned up Geometry inspect to ease debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
vidarh committed Jan 23, 2024
1 parent b1eccca commit d4fdee3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions geom.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d4fdee3

Please sign in to comment.