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

ruby-changes:35962

From: duerst <ko1@a...>
Date: Mon, 20 Oct 2014 12:46:56 +0900 (JST)
Subject: [ruby-changes:35962] duerst:r48043 (trunk): lib/unicode_normalize.rb: removing unnecessary 'self'.

duerst	2014-10-20 12:46:50 +0900 (Mon, 20 Oct 2014)

  New Revision: 48043

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48043

  Log:
    lib/unicode_normalize.rb: removing unnecessary 'self'.

  Modified files:
    trunk/ChangeLog
    trunk/lib/unicode_normalize.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48042)
+++ ChangeLog	(revision 48043)
@@ -1,6 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Oct 20 12:46:46 2014  Martin Duerst <duerst@i...>
+
+	* lib/unicode_normalize.rb: removing unnecessary 'self'.
+
 Mon Oct 20 12:37:37 2014  Martin Duerst <duerst@i...>
 
-	* lib/unicode_normalize.rb: (unicode_normalize!): change method names
+	* lib/unicode_normalize.rb: change method names
 	  in commented-out code. Followup to r48027.
 
 Mon Oct 20 02:23:27 2014  Nobuyoshi Nakada  <nobu@r...>
Index: lib/unicode_normalize.rb
===================================================================
--- lib/unicode_normalize.rb	(revision 48042)
+++ lib/unicode_normalize.rb	(revision 48043)
@@ -47,7 +47,7 @@ class String https://github.com/ruby/ruby/blob/trunk/lib/unicode_normalize.rb#L47
   def unicode_normalize!(form = :nfc)
     require 'unicode_normalize/normalize.rb' unless defined? UnicodeNormalize
     # String.send(:define_method, :unicode_normalize!, ->(form = :nfc) { replace(unicode_normalize(form)) } )
-    replace(self.unicode_normalize(form))
+    replace(unicode_normalize(form))
   end
 
   # :call-seq:

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

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