Making dynamic method

This post was flagged by the community and is temporarily hidden.

Like this:

str = "how are you"
name_of_method = "length"
str.send name_of_method

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs