This won't work. `Tab` has no `installed_revision` attribute; the method above is on `Formula`. I think `keg.version.revision` is what you want (and you can delete the method above).