Method: Forward::Config#remove_account

Defined in:
lib/forward/config.rb

#remove_account(subdomain) ⇒ Object



41
42
43
44
45
46
# File 'lib/forward/config.rb', line 41

def (subdomain)
  accounts.delete(subdomain.to_sym)
  self. = accounts.empty? ? nil : accounts.keys.first

  write
end