If there’s a class StringScanner, I run ‘ri StringScanner’ and read
the documentation on how to use it, but nowhere it mentions the
‘require’ line needed, how do we usually find it out? I had to google
to find out that
require 'strscan' is the line needed…
When I asked about this on IRC, they said run
egrep -r 'StringScanner' /usr/lib/ruby/1.8, but I was really hoping there’s a
builtin way of doing it.