lib/protocol/redis/connection.rb in protocol-redis-0.3.1 vs lib/protocol/redis/connection.rb in protocol-redis-0.4.0

- old
+ new

@@ -137,14 +137,14 @@ # In the case of Redis, we do not want to perform a flush in every line, # because each Redis command contains several lines. Flushing once per # command is more efficient because it avoids unnecessary writes to the # socket. - def write_lines(*args) - if args.empty? + def write_lines(*arguments) + if arguments.empty? @stream.write(CRLF) else - args.each do |arg| + arguments.each do |arg| @stream.write(arg) @stream.write(CRLF) end end end