summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
authorst0012 <stan001212@gmail.com>2022-07-25 23:35:25 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-11-17 13:06:32 +0900
commit923c1aaed7a5707d5c358627aad37f29e7738143 (patch)
tree6df756bc50ad8080cf043767790bf9605cf0647a /lib/irb.rb
parente61b3e6f43434bd815577a67d4f1719091b57d5c (diff)
Drop Ruby 2.5 support
Because it has reached EOL for more than 1.5 years and it won't be supported by the next reline version either.
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index 04009664ef..ab5702c9f2 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -598,11 +598,7 @@ module IRB
if exc.backtrace
order = nil
- if '2.5.0' == RUBY_VERSION
- # Exception#full_message doesn't have keyword arguments.
- message = exc.full_message # the same of (highlight: true, order: bottom)
- order = :bottom
- elsif '2.5.1' <= RUBY_VERSION && RUBY_VERSION < '3.0.0'
+ if RUBY_VERSION < '3.0.0'
if STDOUT.tty?
message = exc.full_message(order: :bottom)
order = :bottom