lib/async/redis/client.rb in async-redis-0.4.2 vs lib/async/redis/client.rb in async-redis-0.4.3
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
# Copyright, 2018, by Samuel G. D. Williams. <http://www.codeotaku.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@@ -52,11 +54,11 @@
attr :endpoint
attr :protocol
# @return [client] if no block provided.
# @yield [client, task] yield the client in an async task.
- def self.open(*args, &block)
- client = self.new(*args)
+ def self.open(*arguments, &block)
+ client = self.new(*arguments)
return client unless block_given?
Async do |task|
begin