string ruby ​​ke boolean

def true?(obj)
  obj.to_s.downcase == "true"
end
Lioruby