class NilClass
クラスの継承リスト: NilClass < Object < Kernel
要約
nil のクラス。 nil は NilClass クラスの唯一のインスタンスです。 nil は false オブジェクトとともに偽を表し、 その他の全てのオブジェクトは真です。
インスタンスメソッド
self & other -> false
-
常に false を返します。
- [PARAM] other:
- 論理積を行なう式です
self ^ other -> bool
-
other が真なら true を, 偽なら false を返します。
- [PARAM] other:
- 排他的論理和を行なう式です
nil? -> bool
-
常に true を返します。
to_a -> Array
-
空配列 [] を返します。
to_f -> Float
-
0.0 を返します。
to_i -> Fixnum
-
0 を返します。
to_s -> String
-
空文字列 "" を返します。
self | other -> bool
-
other が真なら true を, 偽なら false を返します。
- [PARAM] other:
- 論理和を行なう式です
class NilClass