Ruby implementation/variation of go-tool