Sha256: e04f2f5d2552c756d49cb138a5a89abf0fc0d234b5af7d05b5bd7c004244bf39
Contents?: true
Size: 263 Bytes
Versions: 1
Compression:
Stored size: 263 Bytes
Contents
# # Wait fo # class Array def wait_for_state(state) wait_for_attr_state(:state, :available) end def wait_for_attr_state(attr, state, time = 1) until all? { |el| el.send(attr) == state } print "." sleep time end self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rodeo_clown-0.1.0 | lib/rodeo_clown/ext/array.rb |