about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-11-20 03:53:46 +0000
committerEric Wong <e@80x24.org>2014-11-20 20:34:46 +0000
commit3c5e36cd57fa32c85afe26d47a5a7d2314a7360a (patch)
treed5e70ed7bf0dcaac5b800d8e9d3ffdc2636abcee /lib
parentbb5b309f067269eada57b775ff111b488ed9a83e (diff)
downloadyahns-3c5e36cd57fa32c85afe26d47a5a7d2314a7360a.tar.gz
Until we drop 1.9.3 support, we'll save some bytecode by using
[ :literal, :symbols, :in, :arrays ]

In 2.0.0 and later, we may use %i(terser syntax)
Diffstat (limited to 'lib')
-rw-r--r--lib/yahns/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb
index 3055539..f354961 100644
--- a/lib/yahns/config.rb
+++ b/lib/yahns/config.rb
@@ -402,7 +402,7 @@ class Yahns::Config # :nodoc:
       val.close_on_exec = val.sync = true
       val.binmode
     else
-      rt = %w(puts write flush).map(&:to_sym) # match Rack::Lint
+      rt = [ :puts, :write, :flush ] # match Rack::Lint
       rt.all? { |m| val.respond_to?(m) } or raise ArgumentError,
                    "`#{var}' destination must respond to all of: #{rt.inspect}"
     end