Ruby - Classes and Objects
In Ruby, what does the
equal? method determine when used between two objects?equal? method determine when used between two objects?equal?equal? method checks if two variables reference the exact same object instance in memory.====, which compares content equality, equal? is about object identity.equal? checks object identity [OK]equal? with ==equal? compares contentequal? checks class equality15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions