is-boolean
Small boolean utils
false < true
false.to_i == 0
true.to_i == 1
false.is_a?(Boolean) == true
true.is_a?(Boolean) == trueAlso you can use === operator and case when clause.
case value
when Boolean
"Boolean"
else
"Other"
endProject