diff options
author | Eric Wong <e@80x24.org> | 2014-12-08 07:12:19 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-12-08 07:12:19 +0000 |
commit | 4d4f2580df48d0928493ed47fa55e393da54cd56 (patch) | |
tree | b9fef39fcb1a60f8e22b46b80b44f7254a01dd40 /lib/dtas | |
parent | 6d891b395d1614d6d00a5c405997c1e6d7c4671f (diff) | |
download | dtas-4d4f2580df48d0928493ed47fa55e393da54cd56.tar.gz |
tracklist: favor &:sym_to_proc style
This is terser, reads better and generates smaller bytecode.
Diffstat (limited to 'lib/dtas')
-rw-r--r-- | lib/dtas/tracklist.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/tracklist.rb b/lib/dtas/tracklist.rb index 57894dd..2ccbfb4 100644 --- a/lib/dtas/tracklist.rb +++ b/lib/dtas/tracklist.rb @@ -62,7 +62,7 @@ class DTAS::Tracklist # :nodoc: end def tracks - @list.map { |t| t.object_id } + @list.map(&:object_id) end def advance_track(repeat_ok = true) |