Seems like a ruby specific object => string generator, maybe rename it to represent that? Or you can assume Ruby 1.9 syntax (which I think is reasonable, it has been sunset-ed by the Ruby core team) whose hash syntax is just like Python & Node