Ruby: Dynamically create local variable

https://code.i-harness.com/en/q/11b183b