diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-23 23:14:15 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-23 23:14:15 +0000 |
commit | 376e57fee16018b7157c8875d43e4326e76b7c0b (patch) | |
tree | 186a09fa54c4538685734d5602f28c95157e1635 /lib | |
parent | d7f6ef94d305bd3dd620e248fa8d1d7034a017a0 (diff) | |
download | ruby-376e57fee16018b7157c8875d43e4326e76b7c0b.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/webrick/server.rb | 2 |
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 ## |