class Array
Wait fo
Public Instance Methods
wait_for_attr_state(attr, state, time = 1)
click to toggle source
# File lib/rodeo_clown/ext/array.rb, line 10 def wait_for_attr_state(attr, state, time = 1) until all? { |el| el.send(attr) == state } print "." sleep time end self end
wait_for_state(state)
click to toggle source
# File lib/rodeo_clown/ext/array.rb, line 6 def wait_for_state(state) wait_for_attr_state(:state, :available) end