This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
new(str, state = :dec)
public
Creates a newXMLRPC::Base64 instance with string
str as the internal string. When state is :dec
it assumes that the string str is not in base64 format (perhaps
already decoded), otherwise if
state is :enc it decodes str and stores it as
the internal string.
# File lib/xmlrpc/base64.rb, line 21
def initialize(str, state = :dec)
case state
when :enc
@str = Base64.decode(str)
when :dec
@str = str
else
raise ArgumentError, "wrong argument; either :enc or :dec"
end
end