Answers for "how to compare 2 strings in ruby"

1

ruby string equality

hoge = 'hoge'
puts hoge.eql?(hoge) # => true
puts hoge.eql?('hoge') # => true
Posted by: Guest on August-21-2020

Code answers related to "how to compare 2 strings in ruby"

Browse Popular Code Answers by Language