[ad_1]
In this case send with string interpolation seems to be the simplest solution:
(1..5).each do |i|
@profile.send("picture#{i}=", set_selfies[:profile]["picture#{i}"])
end
0
[ad_2]
solved How can I rename methods with metaprogramming?
[ad_1]
In this case send with string interpolation seems to be the simplest solution:
(1..5).each do |i|
@profile.send("picture#{i}=", set_selfies[:profile]["picture#{i}"])
end
0
[ad_2]
solved How can I rename methods with metaprogramming?