module Crystallabs::Helpers::Boolean

Defined in:

crystallabs-helpers.cr

Constant Summary

FALSY_TOKENS = {"false", "0", "no", "off", "f", "n", "-0", "0n"}

The lowercase tokens that, ignoring surrounding whitespace and case, are treated as false. Everything else non-blank is true.

Instance Method Summary

Instance Method Detail

def to_b(arg : Nil, empty = false) #

[View source]
def to_b(arg : Bool, empty = false) #

[View source]
def to_i(arg : Bool) #

[View source]