diff options
author | aycabta <aycabta@gmail.com> | 2021-09-05 23:35:11 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-06 05:23:11 +0900 |
commit | bbb3162dd21903656344aea90c2ad47c89f695ad (patch) | |
tree | a1bacc627b64a4c98739e93ef34bfb45c1e12e89 /lib | |
parent | 544cd3fb910ff41cdc87c70edf1d00e4f6d5b435 (diff) | |
download | ruby-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')
-rw-r--r-- | lib/reline.rb | 1 |
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) |