boolean(str)
Converts a String to true or false
Raises an exception if str is not 0 or 1
# File lib/xmlrpc/parser.rb, line 83 def self.boolean(str) case str when "0" then false when "1" then true else raise "RPC-value of type boolean is wrong" end end