Add remark about call-seq

This commit is contained in:
BurdetteLamar 2024-07-27 16:18:09 +01:00 committed by Peter Zhu
parent 477f672592
commit df1cc04301
Notes: git 2024-07-29 13:15:37 +00:00

View File

@ -360,6 +360,14 @@ For example, in Array, use:
* <=> other -> -1, 0, 1, or nil
```
For a binary-operator style method (e.g., Array#&),
cite `self` in the call-seq (not, e.g., `array` or `receiver`):
```
* call-seq:
* self & other_array -> new_array
```
Arguments:
- If the method does not accept arguments, omit the parentheses.