class Nil

The class of nil, the absence of a value. A type T? is T or Nil.

<prelude>:186

Methods

def to_a -> Array[Nothing]

An empty array.

<prelude>:189

def &(other: Object) -> Bool

Always false: nil is falsy. Unlike &&, it evaluates other.

<prelude>:191

def |(other: Object) -> Bool

Whether other is truthy (neither nil nor false). Unlike ||, it evaluates other and returns a Bool.

<prelude>:194