module Magiika::Util

Extended Modules

Defined in:

util/access_control.cr
util/algo.cr
util/macros.cr
util/object_extensions.cr

Macro Summary

Instance Method Summary

Macro Detail

macro def_iface_is_a(ident, instance_iface, class_iface) #

[View source]
macro downcase?(obj) #

[View source]
macro is_a!(obj, _type) #

[View source]
macro pvar(stmt) #

[View source]
macro upcase?(obj) #

[View source]

Instance Method Detail

def access?(have_access : Access, need_access : Access) : Bool #

[View source]
def access_of?(evaluating_scope : Scope, caller_scope : Scope::Cls) : Access #

[View source]
def access_of?(evaluating_scope : Scope, caller_scope : Scope | Nil = nil) : Access #

[View source]
def similarity(s : String, t : String) #

FIXME Just use the version that comes with crystal https://crystal-lang.org/api/1.12.1/Levenshtein.html

Levenshtein distance src: https://en.wikipedia.org/wiki/Levenshtein_distance#Computation


[View source]
def terminated_concat(string_array : Array(String)) : String #

[View source]