package

github.com/kostya/blank

0.2.0 / published Apr 10, 2021 / repository

method Blank for Crystal Language

blank

method Blank for Crystal Language

Installation

Add this to your application's shard.yml:

dependencies:
  blank:
    github: kostya/blank

Usage

require "blank"

p "".blank? # => true
p 1.blank? # => false
p nil.blank? # => true
p [1].blank? # => false

API

  • Char

    A Char represents a Unicode code point.

  • Nil

    The Nil type has only one possible value: nil.

  • Object

    Object is the base type of all Crystal objects.

  • String

    A String represents an immutable sequence of UTF-8 characters.