As far as I can tell, this is the correct way to do case-insensitive string comparison in Ruby:

RUBY:
  1. if string1.casecmp(string2) == 0
  2.   # strings match, ignoring case
  3. end

That's so ugly, it almost looks like Java. Actually, it's worse than Java, which has String#equalsIgnoreCase.