mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
d7f6ef94d3
commit
376e57fee1
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ module WEBrick
|
|||
def shutdown
|
||||
stop
|
||||
|
||||
alarm_shutdown_pipe {|f| f.close}
|
||||
alarm_shutdown_pipe(&:close)
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Reference in a new issue