What does send()
do in Ruby, and how is it used?
Can someone explain what the following snippet does?
obj.send("#{method_name}")
How does Ruby send work, and in what scenarios is it useful?
What does send()
do in Ruby, and how is it used?
Can someone explain what the following snippet does?
obj.send("#{method_name}")
How does Ruby send work, and in what scenarios is it useful?