diff options
author | Eric Wong <e@80x24.org> | 2014-08-16 23:37:35 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-08-16 23:37:35 +0000 |
commit | 74804f4ccdcac362dc304c8d6dddd65a3dfcd226 (patch) | |
tree | 00af8a70a57f6deb637ba6964104b7c8c335ce86 /lib | |
parent | af4979ef2d4c7683a2b927686beaca74ce789f91 (diff) | |
download | dtas-74804f4ccdcac362dc304c8d6dddd65a3dfcd226.tar.gz |
xs: favor &: block style for simple cases
This avoids captures
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dtas/xs.rb | 2 |
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 |