L
Lobosque Lucas
Is there a way to compare two objects without take its ID in
consideration? For example:
#<Game_Esper:0xdcc7e0 @str=6, @mdfel = 0, @name = "Ifrit"> ==
#<Game_Esper:0xeda51e @str=6, @mdfel = 0, @name = "Ifrit">
It'll return false, because the object ID is different. But i want it to
return true, because the arguments (is it the right name?) are all
equal.
Thanks
consideration? For example:
#<Game_Esper:0xdcc7e0 @str=6, @mdfel = 0, @name = "Ifrit"> ==
#<Game_Esper:0xeda51e @str=6, @mdfel = 0, @name = "Ifrit">
It'll return false, because the object ID is different. But i want it to
return true, because the arguments (is it the right name?) are all
equal.
Thanks