kex docs Standard Library

Blankable

Blankable — types that can be checked for blankness (Rails semantics). A value is blank when it has no meaningful content: nil-equivalents, empty strings/whitespace, empty collections.

trait Blankable

Implemented by Bool, Integer, Float, String, Optional<X>, [X], Map<K, V>, Set<A>, UnorderedSet<A>.

Required methods

An implementor writes these.

blank?

blank? : Bool

type Bool

Implements Blankable, Truthyable.

blank? Blankable

blank? : Bool

Defined in other modules

extends Integer

More methods of Integer, added by this module.

Implements Blankable.

blank? Blankable

blank? : Bool

extends Float

More methods of Float, added by this module.

Implements Blankable.

blank? Blankable

blank? : Bool

extends String

More methods of String, added by this module.

Implements Blankable.

blank? Blankable

blank? : Bool

extends Optional<X>

More methods of Optional, added by this module.

Implements Blankable.

blank? Blankable

blank? : Bool

extends [X]

More methods of List, added by this module.

Implements Blankable.

blank? Blankable

blank? : Bool