read the ruby version from a .ruby-version file

It would be nice to track and enforce the ruby version from a single source - is this an idea people would be interested in?

Note the attached code is just an explanation of the idea, meant more as a point for discussion rather than something I'd actually recommend using. If the idea gets the go ahead, I can rewrite it adding error handling, documentation, tests, etc.