static public Method

Convert.boolean(str)

There's no documentation for this item.

Source Code

# File xmlrpc/parser.rb, line 75
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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.