On Wed, 16 Feb 2005 01:57:23 +0900, David A. Black <dblack / wobblini.net> wrote: > Hi -- > > On Wed, 16 Feb 2005, Bill Guindon wrote: > > > On Tue, 15 Feb 2005 23:04:57 +0900, Michael Gebhart <mail / miketech.net> 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)