Extra Credit

to_bool

Super-simple gem that extends some Ruby classes with a "to_bool" method, which converts any object naturally into a boolean.

$gem install to_bool

Official docs outline

Extra Credit builds an outline of to_bool's docs the first time your work uses it. Until then, start at the official documentation.

All 3,925