Transform your ruby code based on a custom variable