# File lib/ruby2ruby.rb, line 877 def util_dthing(exp, regx = false) s = [] suck = true x = exp.shift.gsub(/"/, '\"').gsub(/\n/, '\n') x.gsub!(/\//, '\/') if regx s << x until exp.empty? pt = exp.shift case pt when Sexp then case pt.first when :str then x = pt.last.gsub(/"/, '\"').gsub(/\n/, '\n') x.gsub!(/\//, '\/') if regx s << x else s << '#{' << process(pt) << '}' # do not use interpolation here end else # HACK: raise "huh?: #{pt.inspect}" # do nothing for now end end s.join end