module Zap::Utils::Various

Defined in:

utils/various.cr

Constant Summary

FALSE_PATTERN = /^false$/i

Class Method Summary

Class Method Detail

def self.block(& : -> T) : T forall T #

[View source]
def self.format_time_span(io : IO, span : Time::Span) #

[View source]
def self.format_time_span(span : Time::Span) #

[View source]
def self.parse_key(raw_key : String) : Tuple(String, String | Nil) #

[View source]
def self.parse_pattern(pattern : String) : Regex #

[View source]
def self.str_to_bool(value : String) #

[View source]