从字符串转换

基本类型 / 布尔类型

strValue = "true"
boolValue = strValue.downcase == "true"
# boolValue is True

puts "boolValue is #{boolValue}"