From: Robert Klemme Date: 2010-03-31T17:15:17+09:00 Subject: Re: want to convert this php code to ruby................. 2010/3/30 HUNT HUNT : > function tooltip($el,$content,$options=array()) { >        if ( substr($content,0,1)!='$') $content = "'$content'"; >        if($options) { >            return > $this->Javascript->codeBlock($this->output(sprintf($this->tooltip['fancy'],$el,$content,$this->_parseOptions($options)))); >        } else { >            return > $this->Javascript->codeBlock($this->output(sprintf($this->tooltip['base'],$el,$content))); >        } >    } Now that you have announced that you want to convert this PHP code to Ruby we'll eagerly await your posting with the outcome. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/