Type of variable


#1

Hello.

How I can get the type of variable?


#2

I found that.

!a : 'symbol'
println(a.class)

#3

If you haven’t found them yet, there is also class_of? and class_actor?.

"test".class_of?(String) // returns true
"test".class_actor? // returns false