ruby19 compat: use each_line on string

This commit is contained in:
Bob Potter 2009-04-07 18:36:23 -05:00
parent 5fba9f717b
commit 27dd15268c

View File

@ -79,7 +79,7 @@ class Redis
info = {}
write("INFO\r\n")
x = get_response
x.each do |kv|
x.each_line do |kv|
k,v = kv.split(':', 2)
k,v = k.chomp, v = v.chomp
info[k.to_sym] = v
@ -443,4 +443,4 @@ class Redis
end
end
end
end