Fixing documentation to match code
Explicitly typecast to Integer for lazy ruby programers