Ruby String à Boolean

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