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

ruby-changes:67648

From: aycabta <ko1@a...>
Date: Tue, 7 Sep 2021 02:43:01 +0900 (JST)
Subject: [ruby-changes:67648] 30203a6fd9 (master): [ruby/reline] Use Symbol for method names

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

From 30203a6fd9814b90e84a5579d4d2da52f7e5f03a Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Tue, 7 Sep 2021 02:33:26 +0900
Subject: [ruby/reline] Use Symbol for method names

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

diff --git a/lib/reline.rb b/lib/reline.rb
index 2bf62df..b331421 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -483,7 +483,7 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L483
   #--------------------------------------------------------
 
   (Core::ATTR_READER_NAMES).each { |name|
-    def_single_delegators :core, "#{name}", "#{name}="
+    def_single_delegators :core, :"#{name}", :"#{name}="
   }
   def_single_delegators :core, :input=, :output=
   def_single_delegators :core, :vi_editing_mode, :emacs_editing_mode
-- 
cgit v1.1


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

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