Transform and execute your ruby code based on a custom variable