0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

NilClass,TrueClass,FalseClass

Last updated at Posted at 2021-04-30

これらは擬似変数と呼ばれます。nilは存在しないオブジェクトを示す特別なオブジェクトです。falseとも0とも違う概念となっているため注意しましょう。また論理演算や条件分岐でtrueは真、false、nilは偽を表します。

参考:変数の種類を知っておこう!Rubyで変数のスコープを使う方法【初心者向け】
https://techacademy.jp/magazine/9704#sec6

0
0
3

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?