summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dufner <13749199+der-scheme@users.noreply.github.com>2025-11-10 15:39:45 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-11-27 15:48:10 +0900
commita2c12d3ffeea99c957ee317fc613c7e0897a04f9 (patch)
tree8b6ad1b3349b68938e17ecfcec8cfbb37e739a35
parent3e926cd5dd2dfb2176b7d65f802519586813284c (diff)
Documentation: Added the `|`(pipe)/OR operator to syntax/methods.
It was not documented as an operator that can be overriden, which is confusing because it makes you think it can't be.
-rw-r--r--doc/syntax/methods.rdoc1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/syntax/methods.rdoc b/doc/syntax/methods.rdoc
index 8dafa6bb0c..14810a188f 100644
--- a/doc/syntax/methods.rdoc
+++ b/doc/syntax/methods.rdoc
@@ -100,6 +100,7 @@ operators.
<code>/</code> :: divide
<code>%</code> :: modulus division, String#%
<code>&</code> :: AND
+<code>|</code> :: OR
<code>^</code> :: XOR (exclusive OR)
<code>>></code> :: right-shift
<code><<</code> :: left-shift, append