Answers for "how to compare 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

Browse Popular Code Answers by Language