ruby/lib/irb/command
Stan Lo 148518baa0 [ruby/irb] Suppress command return values
(https://github.com/ruby/irb/pull/934)

Since commands can't be chained with methods, their return values are
not intended to be used. But if IRB keeps storing command return values
as the last value, and print them, users may rely on such implicit
behaviour.

So to avoid such confusion, this commit suppresses command's
return values. It also updates some commands that currently rely on
this implicit behaviour.

fa96bea76f
2024-04-26 17:52:12 +00:00
..
backtrace.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
base.rb [ruby/irb] Remove internal-only methods from Command::Base 2024-04-17 18:36:30 +00:00
break.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
catch.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
chws.rb [ruby/irb] Suppress command return values 2024-04-26 17:52:12 +00:00
context.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
continue.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
debug.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
delete.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
disable_irb.rb [ruby/irb] Add disable_irb command to disable debug of binding.irb 2024-03-14 15:40:27 +00:00
edit.rb [ruby/irb] Remove internal-only methods from Command::Base 2024-04-17 18:36:30 +00:00
exit.rb [ruby/irb] Remove exit command workaround, handle IRB_EXIT in 2024-04-20 07:45:41 +00:00
finish.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
force_exit.rb [ruby/irb] Remove exit command workaround, handle IRB_EXIT in 2024-04-20 07:45:41 +00:00
help.rb Sync IRB f9347b1 (#10611) 2024-04-23 21:00:56 +00:00
history.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
info.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
internal_helpers.rb [ruby/irb] Remove internal-only methods from Command::Base 2024-04-17 18:36:30 +00:00
irb_info.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
load.rb [ruby/irb] Remove internal-only methods from Command::Base 2024-04-17 18:36:30 +00:00
ls.rb [ruby/irb] Remove internal-only methods from Command::Base 2024-04-17 18:36:30 +00:00
measure.rb [ruby/irb] Remove internal-only methods from Command::Base 2024-04-17 18:36:30 +00:00
next.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
pushws.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
show_doc.rb [ruby/irb] Remove internal-only methods from Command::Base 2024-04-17 18:36:30 +00:00
show_source.rb [ruby/irb] Remove internal-only methods from Command::Base 2024-04-17 18:36:30 +00:00
step.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
subirb.rb [ruby/irb] Suppress command return values 2024-04-26 17:52:12 +00:00
whereami.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00