Excerpts from Gregor Hoffleit's message: > With my limited Ruby knowledge, my quick and dirty fix was: > > if entry[:refs]!="" then > d[:refs]=entry[:refs] > else > d[:refs]=(m.refs + m.replytos).uniq.join(" ") > end > > Is this what the above code is about?
I would expect it to be something alike. Rails has Object#empty? which is true (I think) for nil, false, empty list and empty string. I'd go with entry[:refs].to_s != "" to handle nil as "no refs" too. -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk