Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Integerクラス > |
self | other -> Integer
ビット二項演算子。論理和を計算します。
1 | 1 # => 1 2 | 3 # => 3