fixes 1.8.7 ruby support
make the code match the documentation
Merge pull request #1 from forward3d/master

1.8.7 and doc code fix