Compare Strings (Case Insensitive)

Compare two strings ignoring case differences.

Code

General
str1.downcase == str2.downcase

Parameters

First string to compare

Second string to compare

Server

More Ruby Snippets