Built-In Reflection : send « Method « Ruby






Built-In Reflection


my_string = "times"

3.send(my_string) { print "Hello "}

 

Related examples in the same category

1.Calling Methods Dynamically