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

后端 未结 0 657
青春惊慌失措
青春惊慌失措 2021-02-12 04:55

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

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


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