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

self.casecmp(arg ) == 0

puts “Test”.eq(“test”)

true

Or you could say ‘$= = true’

Deprecated and evil, but possible.

Regards,

Dan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs