How do you undo in ruby API?

How do you send the command to undo the previous operation in the Ruby API?

Sketchup.undo

http://www.sketchup.com/intl/en/developer/docs/ourdoc/sketchup#undo