Vidar wrote one in pure Ruby.
https://github.com/vidarh/ruby-x11
At a glance, that looks like an X client library, not an X server?
Ah! You're right, I had read somewhere that he'd implemented his own X windows but I suppose I was mistaken.