class library: Fix broken open method in Document

Signed-off-by: Scott Wilson <i@scottwilson.ca>