summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPeter Vandenberk <peter.vandenberk@simplybusiness.co.uk>2022-09-20 08:53:39 +0100
committergit <svn-admin@ruby-lang.org>2022-10-25 06:59:16 +0000
commit287c5da4aae6a3c8ae16cde590a9eb6d4dd655bf (patch)
tree6e9d4401032c1c229703400d9a6840d16a49a85d /spec
parentba15fb709b0d0dd6310f5cce9ef386bb3bc4707d (diff)
[ruby/tmpdir] Make `Dir.tmpdir` more idiomatic and functional
Use `Enumerable#find` to iterate over the candidates, not `Enumerable.each`. (this makes the code more functional, and - IMO - slightly more idiomatic, as it avoids setting the "global" (by which I mean: non-local) `tmp` variable from inside the block) https://github.com/ruby/tmpdir/commit/d1f20ad694
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions