[前][次][番号順一覧][スレッド一覧]

ruby-changes:44816

From: normal <ko1@a...>
Date: Thu, 24 Nov 2016 08:14:23 +0900 (JST)
Subject: [ruby-changes:44816] normal:r56889 (trunk): webrick/server: use symbol proc

normal	2016-11-24 08:14:15 +0900 (Thu, 24 Nov 2016)

  New Revision: 56889

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56889

  Log:
    webrick/server: use symbol proc
    
    Symbol proc is less code and avoids confusion from variable
    naming.
    
    * lib/webrick/server.rb (shutdown): use symbol proc

  Modified files:
    trunk/lib/webrick/server.rb
Index: lib/webrick/server.rb
===================================================================
--- lib/webrick/server.rb	(revision 56888)
+++ lib/webrick/server.rb	(revision 56889)
@@ -232,7 +232,7 @@ module WEBrick https://github.com/ruby/ruby/blob/trunk/lib/webrick/server.rb#L232
     def shutdown
       stop
 
-      alarm_shutdown_pipe {|f| f.close}
+      alarm_shutdown_pipe(&:close)
     end
 
     ##

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]