What is the “=~” operator in Ruby?

前端 未结 7 665
情深已故
情深已故 2020-12-01 09:56

I saw this on a screencast and couldn\'t figure out what it was. Reference sheets just pile it in with other operators as a general pattern match operator.

相关标签:
7条回答
  • 2020-12-01 10:58

    I believe this is a pattern matching operator used with regex.

    0 讨论(0)
提交回复
热议问题