るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.053秒)
トップページ > ライブラリ:ビルトイン[x] > クエリ:Class[x] > クエリ:NilClass[x] > バージョン:2.6.0[x] > クエリ:|[x] > クラス:NilClass[x]

別のキーワード

  1. argf.class lines
  2. argf.class each
  3. argf.class each_line
  4. class new
  5. argf.class to_a

検索結果

NilClass#|(other) -> bool (126382.0)

other が真なら true を, 偽なら false を返します。

other が真なら true を, 偽なら false を返します。

@param other 論理和を行なう式です

//emlist[例][ruby]{
nil | true # => true
nil | false # => false
nil | nil # => false
nil | "a" # => true
//}