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

ruby-changes:57948

From: Nobuyoshi <ko1@a...>
Date: Fri, 27 Sep 2019 00:52:10 +0900 (JST)
Subject: [ruby-changes:57948] 617fa3049a (master): NEWS: fixed markups and formatting [ci skip]

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

From 617fa3049a151d773bb26151ae774a8f6a60bc2a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 27 Sep 2019 00:48:48 +0900
Subject: NEWS: fixed markups and formatting [ci skip]

* got rid of inadvertent label lists.
* marked up resolve_feature_path method names.
* fixed indentation of UnboundMethod#bind_call and marked up as
  RDoc.

diff --git a/NEWS b/NEWS
index dd461a3..af32764 100644
--- a/NEWS
+++ b/NEWS
@@ -198,16 +198,16 @@ RubyVM:: https://github.com/ruby/ruby/blob/trunk/NEWS#L198
 
   Removed method::
 
-    * RubyVM.resolve_feature_path moved to
-      $LOAD_PATH.resolve_feature_path.  [Feature #15903] [Feature #15230]
+    * +RubyVM.resolve_feature_path+ moved to
+      <code>$LOAD_PATH.resolve_feature_path</code>.  [Feature #15903] [Feature #15230]
 
 Symbol::
 
   Modified method::
 
-    * Symbol#to_s now always returns a frozen String. The returned String is
-      always the same for a given Symbol. This change is experimental.
-      [Feature #16150]
+    * Symbol#to_s now always returns a frozen String. The returned String
+      is always the same for a given Symbol.  This change is
+      experimental.  [Feature #16150]
 
 Time::
 
@@ -219,8 +219,8 @@ Time:: https://github.com/ruby/ruby/blob/trunk/NEWS#L219
 
   Modified method::
 
-    * Time#inspect is separated from Time#to_s and it shows its sub second.
-      [Feature #15958]
+    * Time#inspect is separated from Time#to_s and it shows its sub
+      second.  [Feature #15958]
 
 UnboundMethod::
 
@@ -228,33 +228,34 @@ UnboundMethod:: https://github.com/ruby/ruby/blob/trunk/NEWS#L228
 
     * Added UnboundMethod#bind_call method.  [Feature #15955]
 
-`umethod.bind_call(obj, ...)` is semantically equivalent to
-`umethod.bind(obj).call(...)`.  This idiom is used in some libraries to
-call a method that is overridden.  The added method does the same
-without allocation of intermediate Method object.
-
-    class Foo
-      def add_1(x)
-        x + 1
-      end
-    end
-    class Bar < Foo
-      def add_1(x) # override
-        x + 2
-      end
-    end
-
-    obj = Bar.new
-    p obj.add_1(1) #=> 3
-    p Foo.instance_method(:add_1).bind(obj).call(1) #=> 2
-    p Foo.instance_method(:add_1).bind_call(obj, 1) #=> 2
+      <code>umethod.bind_call(obj, ...)</code> is semantically equivalent
+      to <code>umethod.bind(obj).call(...)</code>.  This idiom is used in
+      some libraries to call a method that is overridden.  The added
+      method does the same without allocation of intermediate Method
+      object.
+
+          class Foo
+            def add_1(x)
+              x + 1
+            end
+          end
+          class Bar < Foo
+            def add_1(x) # override
+              x + 2
+            end
+          end
+
+          obj = Bar.new
+          p obj.add_1(1) #=> 3
+          p Foo.instance_method(:add_1).bind(obj).call(1) #=> 2
+          p Foo.instance_method(:add_1).bind_call(obj, 1) #=> 2
 
 
 $LOAD_PATH::
 
   New method::
 
-    * Added $LOAD_PATH.resolve_feature_path.  [Feature #15903] [Feature #15230]
+    * Added <code>$LOAD_PATH.resolve_feature_path</code>.  [Feature #15903] [Feature #15230]
 
 === Stdlib updates (outstanding ones only)
 
-- 
cgit v0.10.2


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

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