Ruby setup?

A lot of ruby packages have this setup.rb file that always generates
output like:
—> bin
<— bin
—> lib
—> lib/rubygems
<— lib/rubygems
<— lib

But setup.rb doesn’t appear to be a rake file.

Is there some sort of autoconf for ruby that I’m not aware of?
-Mat