Is there a more concise way of doing this?
# Given a directory containing subdirectories: foo, bar
targets = ['./foo', './bar', './free']
targets.map{ |d| Dir.exists? d }
# => [ true, true, false ]
I'd love to be able to do something similar to proc calls... it feels cleaner:
# targets.map( Dir.exists? )