Remove Ruby warnings

This makes the library `ruby -w` clean, which means it no longer spews warnings when used by code ran with warnings on.