class SymbolTable

Overview

Allows to register symbols and then convert strings to them.

include Ifrit::SymbolTable

a = s(:asd)
# ...
"asd".to_sym # :asd

Included Modules

Defined in:

ifrit/symbol_table.cr

Constant Summary

STR_HASH = {} of String => Symbol
SYM_HASH = {} of Symbol => String

Class Method Summary

Instance methods inherited from class Object

blank? : Bool blank?, present? present?

Class Method Detail

def self.by_string(str) #

[View source]