diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-26 21:07:06 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-26 21:13:16 +0900 |
commit | 300f4677c93fb7ce312bba27e50b0af51ce8ba2e (patch) | |
tree | f0f45ede51984ceaf0c37cdb8059cd36feb43280 /array.c | |
parent | 4acc757d04234d0b128429c152a1ccd96a817cf3 (diff) | |
download | ruby-300f4677c93fb7ce312bba27e50b0af51ce8ba2e.tar.gz |
[DOC] Use simple references to operator methods
Method references is not only able to be marked up as code, also
reflects `--show-hash` option.
The bug that prevented the old rdoc from correctly parsing these
methods was fixed last month.
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -8193,9 +8193,9 @@ rb_ary_deconstruct(VALUE ary) * - #hash: Returns the integer hash code. * * === Methods for Comparing - - * - {<=>}[#method-i-3C-3D-3E]: Returns -1, 0, or 1 - * as +self+ is less than, equal to, or greater than a given object. + * + * - #<=>: Returns -1, 0, or 1 * as +self+ is less than, equal to, or + * greater than a given object. * - #==: Returns whether each element in +self+ is <tt>==</tt> to the corresponding element * in a given object. * - #eql?: Returns whether each element in +self+ is <tt>eql?</tt> to the corresponding @@ -8277,12 +8277,12 @@ rb_ary_deconstruct(VALUE ary) * * === Methods for Combining * - * - {&}[#method-i-26]: Returns an array containing elements found both in +self+ and a given array. + * - #&: Returns an array containing elements found both in +self+ and a given array. * - #intersection: Returns an array containing elements found both in +self+ * and in each given array. * - #+: Returns an array containing all elements of +self+ followed by all elements of a given array. * - #-: Returns an array containing all elements of +self+ that are not found in a given array. - * - {|}[#method-i-7C]: Returns an array containing all elements of +self+ and all elements of a given array, + * - #|: Returns an array containing all elements of +self+ and all elements of a given array, * duplicates removed. * - #union: Returns an array containing all elements of +self+ and all elements of given arrays, * duplicates removed. |