lib/cistern/timeout.rb in cistern-2.2.3 vs lib/cistern/timeout.rb in cistern-2.2.4

- old
+ new

@@ -1,8 +1,8 @@ module Cistern module WaitFor - def self.wait_for(timeout = Cistern.timeout, interval = Cistern.poll_interval, &block) + def self.wait_for(timeout = Cistern.timeout, interval = Cistern.poll_interval, &_block) duration = 0 start = Time.now until yield || duration > timeout sleep(interval.to_f) @@ -10,14 +10,14 @@ end if duration > timeout false else - { :duration => duration } + { duration: duration } end end - def self.wait_for!(*arg) + def self.wait_for!(*_arg) wait_for end end end