Ruby 4.0 リファレンスマニュアル

instance method Integer#&

self & other -> Integer[permalink][rdoc][edit]

ビット二項演算子。論理積を計算します。

[PARAM] other:
数値

p 1 & 1  # => 1
p 2 & 3  # => 2