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