Ruby - Classes and Objects
You want to check if two variables
x and y refer to the same object, but x might be nil. Which Ruby code safely performs this check without errors?