tab: cleanup various methods.
tab: cleanup various methods.

Use some newer Ruby syntax and improve readability.

nandub/brew,maxim-belkin/brew,sjackman/homebrew,hanxue/linuxbrew,maxim-belkin/brew,MikeMcQuaid/brew,Linuxbrew/brew,nandub/brew,JCount/brew,claui/brew,sjackman/homebrew,Homebrew/brew,Homebrew/brew,Homebrew/brew,mahori/brew,claui/brew,JCount/brew,Linuxbrew/brew,mahori/brew,vitorgalvao/brew,nandub/brew,hanxue/linuxbrew,sjackman/homebrew,claui/brew,nandub/brew,EricFromCanada/brew,vitorgalvao/brew,sjackman/homebrew,mgrimes/brew,ilovezfs/brew,MikeMcQuaid/brew,ilovezfs/brew,reitermarkus/brew,mgrimes/brew,MikeMcQuaid/brew,EricFromCanada/brew,EricFromCanada/brew,reitermarkus/brew,Homebrew/brew,vitorgalvao/brew,reitermarkus/brew,maxim-belkin/brew,DomT4/brew,DomT4/brew,DomT4/brew,konqui/brew,JCount/brew,Linuxbrew/brew,ilovezfs/brew,JCount/brew,mahori/brew,hanxue/linuxbrew,konqui/brew,EricFromCanada/brew,DomT4/brew,claui/brew,konqui/brew,mahori/brew,MikeMcQuaid/brew,vitorgalvao/brew,konqui/brew,reitermarkus/brew,Linuxbrew/brew,mgrimes/brew