Magic comment should be the first line.

Not sure why your ruby is okay with it elsewhere.