From: "David A. Black" Date: 2005-02-16T02:39:07+09:00 Subject: Re: Ruby Source code checker Hi -- On Wed, 16 Feb 2005, Bill Guindon wrote: > On Wed, 16 Feb 2005 01:57:23 +0900, David A. Black wrote: >> Hi -- >> >> On Wed, 16 Feb 2005, Bill Guindon wrote: >> >>> On Tue, 15 Feb 2005 23:04:57 +0900, Michael Gebhart wrote: >>> >>>> When I do: >>>> >>>> @variable.function >>>> >>>> ruby does not know, if the method "function" is avaibable or not. >>> >>> actually, you can ask it... >>> >>> @variable.respond_to?("function") >> >> But that's a runtime thing too. I don't think you can leverage that >> to do pre-runtime checking. >> > > Yep, but he started out mentioning a runtime problem. Just wanted to > make sure he knew he could check for the method during runtime > (triggered by "doing my first steps with ruby"). I was going by: "is it possible to find out some errors without running the program and starting the function?" :-) (But I certainly don't mean to object to your imparting info about what he can do with Ruby :-) David -- David A. Black dblack@wobblini.net