From: Martin Durai Date: 2007-11-22T17:47:52+09:00 Subject: Re: return type hi gavin Iam in a task of porting java class into ruby. so how to port the following java code into ruby. I didnt understood exactly what java does with the following code. so could you help me to port this one. public String getNamespace() { if(eventType == START_TAG) { return processNamespaces ? elUri[ depth ] : NO_NAMESPACE; } else if(eventType == END_TAG) { return processNamespaces ? elUri[ depth ] : NO_NAMESPACE; } return null; } Gavin Kistner wrote: > On Nov 21, 4:11 am, Martin Durai wrote: >> Actually the following code is a java return type. could any one help to >> do the same in ruby. >> >> return processNamespaces ? elUri[depth] : NO_NAMESPACE > > I don't understand your question. -- Posted via http://www.ruby-forum.com/.