about summary refs log tree commit homepage
path: root/lib/dtas
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-08-16 23:37:35 +0000
committerEric Wong <e@80x24.org>2014-08-16 23:37:35 +0000
commit74804f4ccdcac362dc304c8d6dddd65a3dfcd226 (patch)
tree00af8a70a57f6deb637ba6964104b7c8c335ce86 /lib/dtas
parentaf4979ef2d4c7683a2b927686beaca74ce789f91 (diff)
downloaddtas-74804f4ccdcac362dc304c8d6dddd65a3dfcd226.tar.gz
xs: favor &: block style for simple cases
This avoids captures
Diffstat (limited to 'lib/dtas')
-rw-r--r--lib/dtas/xs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/xs.rb b/lib/dtas/xs.rb
index 031f522..442e243 100644
--- a/lib/dtas/xs.rb
+++ b/lib/dtas/xs.rb
@@ -9,6 +9,6 @@ require 'shellwords'
 # again, filesystems can use any byte value in names except '\0'.
 module DTAS::XS # :nodoc:
   def xs(ary)
-    Shellwords.join(ary.map { |s| s.b })
+    Shellwords.join(ary.map(&:b))
   end
 end