plessl/wkpdf — pull request #27 by tizmagik (2012-05-29 16:38:35+00:00)
Title: Changed @margins.count to @margins.length

This fixed an error that was being produced on Mac OSX 10.5:

undefined method 'count' for [:auto, :auto, :auto, :auto]:Array (NoMethodError)

No idea why .count wasn't working, but .length seems to do the trick