Forum: Ruby Re: "str1" == "STR1" case insensitive

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Berger, Daniel (Guest)
on 2006-03-21 22:10
(Received via mailing list)
> >     self.casecmp(arg ) == 0
> > puts "Test".eq("test")
> > > true

Or you could say '$= = true'

Deprecated and evil, but possible.


This topic is locked and can not be replied to.