[前][次][番号順一覧][スレッド一覧]

ruby-changes:67616

From: aycabta <ko1@a...>
Date: Mon, 6 Sep 2021 05:23:21 +0900 (JST)
Subject: [ruby-changes:67616] bbb3162dd2 (master): [ruby/reline] Add Reline::Key#== as an alias to Reline::Key#match?

https://git.ruby-lang.org/ruby.git/commit/?id=bbb3162dd2

From bbb3162dd21903656344aea90c2ad47c89f695ad Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sun, 5 Sep 2021 23:35:11 +0900
Subject: [ruby/reline] Add Reline::Key#== as an alias to Reline::Key#match?

https://github.com/ruby/reline/commit/1fc3276c01
---
 lib/reline.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/reline.rb b/lib/reline.rb
index 4b06d07..8fecb5c 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -34,6 +34,7 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L34
         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)
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]