# File lib/rongo.rb, line 181 def convert_to_good_ruby_string(s) a = s.split commandname = a[0] candidate = [] return s if a.size == 0 @@rongocommands.each do |x| candidate.push(x) if x.index(commandname) == 0 end if candidate.size > 1 x = candidate.join(", ") ss = "command \"#{commandname}\" ambiguous, possible name = \"#{x}\"" senderror ss else commandname = candidate[0] if commandname == "data" s = commandname + ' "' + a[1] + '"' + "\n" elsif @@rongocommands.index(commandname) s = commandname+ " " + a[1..a.size].join(", ")+"\n" end s end end