From: Bill Guindon Date: 2005-02-16T02:10:18+09:00 Subject: Re: Ruby Source code checker 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"). -- Bill Guindon (aka aGorilla)