Yes, you're absolutely right, it should be .contents, that's what I get for copying, then forking, pasting back and sending a pull request :)