module

Dragonstone::Typing::Builtins

Constants

MATCHERS = {"string" => ->(value : RuntimeValue) do value.is_a?(String) end, "str" => ->(value : RuntimeValue) do value.is_a?(String) end, "int" => ->(value : RuntimeValue) do value.is_a?(Int32) || value.is_a?(Int64) end, "integer" => ->(value : RuntimeValue) do value.is_a?(Int32) || value.is_a?(Int64) end, "int32" => ->(value : RuntimeValue) do value.is_a?(Int32) end, "int64" => ->(value : RuntimeValue) do value.is_a?(Int64) end, "float" => ->(value : RuntimeValue) do value.is_a?(Float32) || value.is_a?(Float64) end, "float32" => ->(value : RuntimeValue) do value.is_a?(Float32) end, "float64" => ->(value : RuntimeValue) do value.is_a?(Float64) end, "bool" => ->(value : RuntimeValue) do value.is_a?(Bool) end, "boolean" => ->(value : RuntimeValue) do value.is_a?(Bool) end, "char" => ->(value : RuntimeValue) do value.is_a?(Char) end, "array" => ->(value : RuntimeValue) do value.is_a?(Array) end, "map" => ->(value : RuntimeValue) do value.is_a?(MapValue) end, "nil" => ->(value : RuntimeValue) do value.nil? end, "any" => ->(_value : RuntimeValue) do true end}

Instance methods

matcher_for(name : String)
Source