From: Liorean Date: 2002-04-05T02:23:56+09:00 Subject: Re: Some ActiveRuby/RubyScript questions At 02:12 2002-04-05 +0900, Chris wrote: > > Also, I'd like to know how to detect whether a property of an object > exists > > or not, something of the kind: > > if(typeof document.all!='undefined'){/* some action or other... */} > >an_array = [] >if defined?(an_array.push) > #do something here >end > >or... > >if x = defined? an_array.push > p x >end > >prints out "method" Lovely, thanks! Now I only need to find out how to find what children of to an object exists... // Liorean