What is the difference between ruby send and ruby public_send method?

后端 未结 0 1256
孤街浪徒
孤街浪徒 2021-02-12 04:58

I am very curious to know what the difference is between send and public_send. E.g.:

class Klass
  def hello(*args)
    \"Hello \" + ar         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题