[ruby-core:102152] [Ruby master Bug#17557] IRB array returned in multiple lines
From:
takashikkbn@...
Date:
2021-01-19 06:46:10 UTC
List:
ruby-core #102152
Issue #17557 has been updated by k0kubun (Takashi Kokubun).
The point 2 was merged to IRB master https://github.com/ruby/irb/pull/174. It seems `'s'.methods` returns way more things than what's written in the description and thus it doesn't help your case though.
----------------------------------------
Bug #17557: IRB array returned in multiple lines
https://bugs.ruby-lang.org/issues/17557#change-90004
* Author: sergioro (Sergio Romero)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
Hi Rubysts. In previous versions of IRB an array was displayed in a single line like:
's'.methods
=> [:unicode_normalize, :unicode_normalize!, :ascii_only?, :to_r, :unpack, ..., :!=, :equal?, :__id__, :instance_eval, :instance_exec]
But in version 1.3.1 (2021-01-12) the array is returned in multiple lines:
's'.methods
=>
[:unicode_normalize,
:unicode_normalize!,
:ascii_only?,
:to_r,
:unpack,
...,
:!=,
:equal?,
:__id__,
:instance_eval,
:instance_exec]
Is there a way to toggle this behavior, perhaps IRB.conf?
--
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>