From: Ed Hardy Date: 2008-11-02T08:34:58+09:00 Subject: Re: Another require question Yike. I 'knew it' but forgot, not at the surface of my mind/reading. I had fallen into a misconception, explained by this correct interpretation of file handing... ruby> begin ruby| file = open("/tmp/some_file", "w") ruby| # something to do ruby| ensure ruby| file.close ruby| end Sebastian Hungerecker wrote: > Ed Hardy wrote: >> file.open(path)' returns this error in the SciTE editor: >> >> "undefined local variable or method `math' for main:Object (NameError)" > > That line most certainly does not cause that error. You might want to > show the > whole code or if it's a lot of code, the smallest possible example > that's > runnable and produces the error. > > HTH, > Sebastian -- Posted via http://www.ruby-forum.com/.