aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-05 23:35:11 +0900
committergit <svn-admin@ruby-lang.org>2021-09-06 05:23:11 +0900
commitbbb3162dd21903656344aea90c2ad47c89f695ad (patch)
treea1bacc627b64a4c98739e93ef34bfb45c1e12e89 /lib/reline.rb
parent544cd3fb910ff41cdc87c70edf1d00e4f6d5b435 (diff)
downloadruby-bbb3162dd21903656344aea90c2ad47c89f695ad.tar.gz
[ruby/reline] Add Reline::Key#== as an alias to Reline::Key#match?
https://github.com/ruby/reline/commit/1fc3276c01
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index 4b06d07b4d..8fecb5c483 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -34,6 +34,7 @@ module Reline
false
end
end
+ alias_method :==, :match?
end
CursorPos = Struct.new(:x, :y)
DialogRenderInfo = Struct.new(:pos, :contents, :pointer, :bg_color, :width, :height, :scrollbar, keyword_init: true)