The Ruby programming language lists only these operators as defined:
! ~ + # Boolean NOT, bitwise complement, unary plus ** # Exponentiation - # Unary minus (define with-@ ) * / % # Multiplication, division, modulo (remainder) + - # Addition (or concatenation), subtraction << >> # Bitwise shift-left (or append), bitwise shift-right & # Bitwise AND | ^ # Bitwise OR, bitwise XOR < <= >= > # Ordering == === != =~ !~ <=> # Equality, pattern matching, comparison
Source: Yukihiro Matsumoto: βRuby Programming Language,β p. 102 (2008, first edition)
So, I think the webpage you provided is simply incorrect.
source share