Force an object to be seen as untainted by calling the untaint method on the object. : tainted « Class « Ruby






Force an object to be seen as untainted by calling the untaint method on the object.



while x = gets
  next if x.tainted?
  puts "=> #{eval(x)}"
end

 








Related examples in the same category

1.Check if an object is considered tainted by using the tainted? method:
2.Tell if a certain operation is safe: