mardi 24 août 2021

Turn ruby hash into local variable

{"string_1.0" => "1,0"}
  1. In the above mentioned the ruby hash, now i want to turn hash key into local variable.
  2. Use hash key string as it is to turn into local variable.
  3. it should run with ruby instead of jruby
  4. Expected output:
string_1.0 = "1.0"

Thanks in advance for solutions.

Aucun commentaire:

Enregistrer un commentaire