Ruby version of Python's doctest tool, but a bit different