[ruby mode] Fix: bb73aeac and also handle global variables interpolation

I'm really sorry but actually my previous commit was buggy. I misunderstood how the recursive parser worked.

This time it's fixed and it also work for global variables.