Peter Ertl wrote:
> class String
>   def eq(arg)
>     self.casecmp(arg ) == 0
>   end
> end
>

Or you could say:

class String
  alias eq casecmp
end

> puts "Test".eq("test")
> > true