Comment on Ruby mistakesparentComments−nirvdrum13yThanks for the clarification. I was recently surprised by the return value when:z = x.yz == x.y # => truedefined?(z) == defined?(x.y) # => false
Comments
Thanks for the clarification. I was recently surprised by the return value when:
z = x.y
z == x.y # => true
defined?(z) == defined?(x.y) # => false