pretty print display class

This commit is contained in:
Richard Ramsden 2012-05-19 12:03:23 -07:00
parent 1bb7cc9f6b
commit 13f78a85a0

View file

@ -61,5 +61,9 @@ module X11
raise AuthorizationError, "Received unknown opcode #{type}" raise AuthorizationError, "Received unknown opcode #{type}"
end end
end end
def to_s
"#<X11::Display:0x#{object_id.to_s(16)} screens=#{@internal.screens.size}>"
end
end end
end end