Check out example codes for "ruby string equality". It will help you in understanding the concepts better.
Code Example 1
hoge = 'hoge'
puts hoge.eql?(hoge) # => true
puts hoge.eql?('hoge') # => true
Learn ReactJs, React Native from akashmittal.com