Add remark about call-seq
This commit is contained in:
parent
477f672592
commit
df1cc04301
Notes:
git
2024-07-29 13:15:37 +00:00
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user