From: Erik Price Date: 2011-07-17T11:06:13+09:00 Subject: [ruby-core:38119] [Ruby 1.9 - Feature #5029] accept multiple args in Kernel#warn(), like puts() Issue #5029 has been updated by Erik Price. File 0001-Changed-rb_warn_m-to-accept-variable-arguments.patch added I implemented this feature request in the attached patch if there's any interest in the changed behavior of Kernel#warn(). ---------------------------------------- Feature #5029: accept multiple args in Kernel#warn(), like puts() http://redmine.ruby-lang.org/issues/5029 Author: Suraj Kurapati Status: Open Priority: Normal Assignee: Category: Target version: Hello, Please make Kernel#warn() like Kernel#puts(): * Accept multiple arguments. * Print them separated by newline. This will allow me to warn exceptions easily: begin ... rescue => error warn error.inspect, error.backtrace end Instead of the current way, of having to write: begin ... rescue => error warn error.inspect warn error.backtrace.join("\n") end Thanks for your consideration. -- http://redmine.ruby-lang.org