class Net::SMTP::Address
Address with parametres for MAIL or RCPT command
def initialize(address, *args, **kw_args)
address +String+ or +Net::SMTP::Address+
initialize(address, parameter, ...)
:call-seq:
def initialize(address, *args, **kw_args) if address.kind_of? Address @address = address.address @parameters = address.parameters else @address = address @parameters = (args + [kw_args]).map{|param| Array(param)}.flatten(1).map{|param| Array(param).compact.join('=')} end end
def to_s
def to_s @address end