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/.