Ruby convert string to method name

前端 未结 4 1176
醉话见心
醉话见心 2020-12-28 12:43

I have two methods defined in my ruby file.

def is_mandatory(string)
      puts xyz
end
def is_alphabets(string)
      puts abc 
end 

An

4条回答
提交回复
热议问题