Skip to main content
added 78 characters in body
Source Link
dinomix
  • 986
  • 4
  • 5

You can use the send method to call a method from a string:

prod.send("pic#{i}_file_name") # to read

prod.send("pic#{i}_file_name=", obj.key[45..-1]) # to assign

You can use the send method to call a method from a string:

prod.send("pic#{i}_file_name")

You can use the send method to call a method from a string:

prod.send("pic#{i}_file_name") # to read

prod.send("pic#{i}_file_name=", obj.key[45..-1]) # to assign
Source Link
dinomix
  • 986
  • 4
  • 5

You can use the send method to call a method from a string:

prod.send("pic#{i}_file_name")