Re: help with exceptions

cutelucks Ms
Wed, 22 Apr 2009 14:52:27 -0000

Frederick Cheung wrote:
> On Apr 22, 3:19�pm, cutelucks Ms
<rails-mailing-l...-ARtvInVfO7m5VldFQK4jKA@public.gmane.orgt>
> wrote:
>
>> when i execute this, i always get the output as
>> Hello
>> nil
>>
>> I am unable to understand why the NonExisting is not calling the
>> nameerror.
>> can someone help me with this.
>>
> presumably because calling foo= is raising a NoMethodError because
> there is no such method.
>
> Fred



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
--
Posted via http://www.ruby-forum.com/.