ruby equality check code example Example: ruby string equality hoge = 'hoge' puts hoge.eql?(hoge) # => true puts hoge.eql?('hoge') # => true