1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Ruby】演算子優先順一覧

Last updated at Posted at 2024-09-16
順位 カテゴリ 演算子
1 スコープ x::y
2 配列 [x, y, z]
3 正、否定 +x、!x、~x
4 べき乗 x ** y
5 -x
6 乘算、除算、剩余 x * y、x / y、x % y
7 加算、減算 x + y、x - y
8 シフト演算 x << y、x >> y
9 論理積 x & y
10 論理和、排他的論理和 x
11 比較 x > y、x >= y、x < y、x <= y
12 等しい、等しくない x == y、x === y、 x != y、x =~ y、x !~ y
13 論理積 x && y
14 論理和 x
15 範囲式 x .. y、x ... y
16 条件 x ? y : z
17 代入、自己代入 x = y、x += y、x -= y など
18 論理否定 not x
19 論理積、論理和 x and y、x or y

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?