Issue #12054 has been reported by Daniel Lobato Garcia.

----------------------------------------
Bug #12054: Remove block from Logger.add as it's not needed 
https://bugs.ruby-lang.org/issues/12054

* Author: Daniel Lobato Garcia
* Status: Open
* Priority: Normal
* Assignee: Daniel Lobato Garcia
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Logger add (lib/logger.rb) takes as arguments severity, message, progname and &block

The method runs the block through yield. In this case, we can just omit the argument and we'd be saving the instantiation of a new proc object (see http://mudge.name/2011/01/26/passing-blocks-in-ruby-without-block.html).



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>