summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-23 23:14:15 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-23 23:14:15 +0000
commit376e57fee16018b7157c8875d43e4326e76b7c0b (patch)
tree186a09fa54c4538685734d5602f28c95157e1635
parentd7f6ef94d305bd3dd620e248fa8d1d7034a017a0 (diff)
webrick/server: use symbol proc
Symbol proc is less code and avoids confusion from variable naming. * lib/webrick/server.rb (shutdown): use symbol proc git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/webrick/server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
index b78014c459..2e7654d9bb 100644
--- a/lib/webrick/server.rb
+++ b/lib/webrick/server.rb
@@ -232,7 +232,7 @@ module WEBrick
def shutdown
stop
- alarm_shutdown_pipe {|f| f.close}
+ alarm_shutdown_pipe(&:close)
end
##