Comment on Problems with the metakoans.rb Ruby Quiz by Amit Rathore

Tue, 06 Feb 2007 21:28:40 -0800

I don't think the author intended that. I think 'assert { (c.a = nil) == nil }' asserts that the method returns whatever value you might be setting, if for any reason you want it. As in, this should pass as well -

assert { (c.a = 5) == 5 }