method

new

Importance_0
v1_9_3_392 - Show latest stable - 0 notes - Class: Base64
new(str, state = :dec) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/xmlrpc/base64.rb, line 44
  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
Register or log in to add new notes.