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