るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.011秒)

別のキーワード

  1. _builtin ^
  2. set ^
  3. integer ^
  4. nilclass ^
  5. trueclass ^

ライブラリ

検索結果

Integer#^(other) -> Integer (54343.0)

ビット二項演算子。排他的論理和を計算します。

ビット二項演算子。排他的論理和を計算します。

@param other 数値

//emlist[][ruby]{
1 ^ 1 # => 0
2 ^ 3 # => 1
//}