but even when i comment the intial code and start from 'NonExisting'
line the same output comes. I guess it should now have gone to nameerror
rite but still the output is
hello
nil
If you've commented out some bits and not others I can only guess as
to what your code actually is.
but even when i comment the intial code and start from 'NonExisting'
line the same output comes. I guess it should now have gone to nameerror
rite but still the output is
hello
nil
Oh, and you rescue clause is wrong too - you're rescuing all
Exceptions, not just NoMethodErrors (and then it's probably trying to
assign the exception object to the NoMethodError constant or something
crazy like that). Check whatever ruby reference you're using for the
correct syntax