Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library English > module Kernel > $IGNORECASE

variable $IGNORECASE

$IGNORECASE [added by English]

$= の別名

require "English"

$IGNORECASE=true

str_l = "FOOBAR"
str_s = "foobar"

if str_l == str_s
  p "#{str_l} equal to #{str_s}" #=> "FOOBAR equal to foobar"
end