Generic each_* methods
Simple method to iterate over a particular type of spec
This is a convenient wrapper for the pattern:
clients = p4.run_clients
clients.each do
|c|
client = p4.fetch_client( c['client'] )
<do something with spec>
end
NOTE: It's not possible to implicitly pass a block to a
delegate method, so I've implemented it here directly. Could use
Proc.new.call, but it looks like there is a serious performance
impact with that method.