[ruby/irb] Add doc about "echo on assignment"

5af637b3c1
This commit is contained in:
aycabta 2021-09-27 03:21:39 +09:00 committed by git
parent 51773bed10
commit 00cfafc0f5
5 changed files with 40 additions and 0 deletions

View file

@ -274,6 +274,18 @@ module IRB
# IRB.CurrentContext.echo_on_assignment = true
# a = "omg" * 10
# #=> omgomgomgomgomgomgomgomgomgomg
#
# To set the behaviour of showing on assignment in irb:
#
# IRB.conf[:ECHO_ON_ASSIGNMENT] = :truncate or true or false
#
# or
#
# irb_context.echo_on_assignment = :truncate or true or false
#
# or
#
# IRB.CurrentContext.echo_on_assignment = :truncate or true or false
attr_accessor :echo_on_assignment
# Whether a newline is put before multiline output.
#