From: Nit Khair Date: 2008-10-01T21:08:46+09:00 Subject: Re: "ensure" hiding actual error Robert Klemme wrote: > > This sounds strange because syntax errors should be caught earlier - > unless they stem from an "require" or "load". Can you post a short > example that reproduces the error? > > Kind regards > > robert Could you elaborate on that? At the moment, I am requiring a Module and inheriting from a class. And the syntax error was in one of them. However, as i said, when i remove the 'ensure' it correctly shows the error in the relevant class. I cannot recall if this error occurred when i had everything in one. Will try to give a short sample. It's an ncurses-ruby program. -- Posted via http://www.ruby-forum.com/.