From: Farrel Lifson Date: 2006-03-06T02:33:53+09:00 Subject: Re: ruby pass like statement If the method is not defined the interpreter will throw a NoMethodError exception. If you don't want that you can just define your method with an empty body class Test def foo end end This will return a nil if called. Farrel On 3/5/06, rtilley wrote: > Farrel Lifson wrote: > > Does pass actually do anything like print to stdout "some_function not > > yet defined"? > > No, it's just a place holder. > > It would be incorrect (in Python) to not define the function. So, you > place the 'pass' statement there to avoid causing errors when testing > your program. Without the pass statement, I believe one would be > required to comment out the undefined function in order to execute the > program. Maybe this is not needed in Ruby??? > >