From: Juan Ayup Date: 2008-04-17T00:01:18+09:00 Subject: Re: return type Gavin Kistner wrote: > def getNamespace > if [ START_TAG, END_TAG ].include?( $eventType ) > $processNamespaces ? $elUri[ $depth ] : NO_NAMESPACE > end > end And of course, the oneliner: def getNamespace [ START_TAG, END_TAG ].include?( $eventType ) && ($processNamespaces ? $elUri[$depth] : NO_NAMESPACE) end -- Posted via http://www.ruby-forum.com/.