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