B
bparanj
Hello,
I am developing a gem where I need to redefine the <=> operator for
Proc. This operator shows up in the methods list when I print the
output of methods call but I don't see it in the list of private or
protected methods.
I know in Ruby 1.9 === operator has been redefined, but I am not able
to confirm that <=> is currently implemented in Ruby 1.9. I don't want
to over-ride the hat operator if it is already implemented for Proc.
Could someone please give me some pointers?
TIA.
Bala
I am developing a gem where I need to redefine the <=> operator for
Proc. This operator shows up in the methods list when I print the
output of methods call but I don't see it in the list of private or
protected methods.
I know in Ruby 1.9 === operator has been redefined, but I am not able
to confirm that <=> is currently implemented in Ruby 1.9. I don't want
to over-ride the hat operator if it is already implemented for Proc.
Could someone please give me some pointers?
TIA.
Bala