[ruby-core:89145] [Ruby trunk Feature#15112] Introdudce the new singleton method STDERR.p

From: nobu@...
Date: 2018-09-24 23:18:20 UTC
List: ruby-core #89145
Issue #15112 has been updated by nobu (Nobuyoshi Nakada).


Any object which has `#write` method can be assigned to `$stderr`, so we should not expect `$stderr` to have `p`, I think.

----------------------------------------
Feature #15112: Introdudce the new singleton method STDERR.p
https://bugs.ruby-lang.org/issues/15112#change-74179

* Author: mrkn (Kenta Murata)
* Status: Open
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version: 
----------------------------------------
I sometimes write `STDERR.puts obj.inspect` to print debug message to standard error.
I want to write it as `STDERR.p obj`.
It can be realized by introducing `p` singleton method in `STDERR` object.



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

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

In This Thread

Prev Next