I simply want my method call to suppress all "NoMethodError" exceptions that might arise in the methods it in turn calls.
def foo
begin
bar1
bar2
rescue Exception
return '--'
end
end
But this doesn't work. NoMethodError keeps being raised to the top level.
The exact error is undefined method
[]' for nil:NilClass' (NoMethodError)