LoginSignup
0
1

More than 3 years have passed since last update.

.present?の判定結果

Posted at

3日未来のわたしへ。

オブジェクト 記述 結果
nil nil.present? false
空文字 "".present? false
空配列 [].present? false
空ハッシュ {}.present? false
false false.present? false
0 0.present? true
1 1.present? true
true true.present? true
0
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
0
1