3 ms·
Right, `ls` could be shrinkwrapped. But then so could the entire ruby environment. You're missing an each after your glob. Also -- did you know about [] alias
by mceachen 15y ago
Right, `ls` could be shrinkwrapped. But then so could the entire ruby environment.
You're missing an each after your glob. Also -- did you know about [] alias for glob?
Dir['/Applications/*/Contents/Info.plist'].each do |f|
...
end
- onedognight 15y agoThanks, I didn't know about [] as an alias for glob(). Also, while you do need the .each in the [] version you don't need it in the glob() version.