On Thursday 16 January 2003 11:25 pm, Bulat Ziganshin wrote: > Hello Tom, > > Friday, January 17, 2003, 3:08:22 AM, you wrote: > > TS> quick quest: anyone know of a nice slick short and sweet way to do > this: > > TS> if self.respond_to?(:ameth) > TS> if ameth > TS> if not ameth.to_s.empty? > TS> ... > TS> end > TS> end > TS> end > > ((not ameth.to_s.empty?) and ...) rescue 0 thanks, this seems the most concise answer, although i hesitate to use rescue. is it exceedingly slow to do so? -- tom sawyer, aka transami transami / transami.net .''. .''. . *''* :_\/_: . :_\/_: _\(/_ .:.*_\/_* : /\ : .'.:.'. .''.: /\ : ./)\ ':'* /\ * : '..'. -=:o:=- :_\/_:'.:::. | ' *''* * '.\'/.' _\(/_'.':'.' : /\ : ::::: = *_\/_* -= o =- /)\ ' * '..' ':::' === * /\ * .'/.\'. '._____ * | *..* : |. |' .---"| * | _ .--'| || | _| | * | .-'| __ | | | || | .-----. | |' | || | | | | | || | ___' ' /"\ | '-."". '-' '-.' '` |_. ------------------------------------------------------------