That's exactly what I was looking for. Thanks to both of you.

David
> require "rbconfig"
> puts RbConfig::CONFIG["bindir"]
> 
> RbConfig is in the stdlib, so you don't have to install something.